login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A216978
Numbers n such that n^6+2 is prime.
4
0, 1, 39, 51, 81, 195, 213, 219, 231, 333, 351, 393, 417, 501, 531, 567, 657, 729, 747, 807, 945, 1005, 1059, 1161, 1173, 1185, 1191, 1203, 1281, 1335, 1371, 1467, 1479, 1563, 1587, 1647, 1653, 1749, 1761, 1821, 1845, 1875, 1929, 2373, 2379, 2421, 2529, 2595
OFFSET
1,3
COMMENTS
Except for the first term, all terms must be odd numbers. - Harvey P. Dale, Sep 23 2012
LINKS
MATHEMATICA
lst={}; Do[If[PrimeQ[n^6+2], AppendTo[lst, n]], {n, 0, 3000}]; lst
Join[{0}, Select[Range[1, 3001, 2], PrimeQ[#^6+2]&]] (* Harvey P. Dale, Sep 23 2012 *)
PROG
(PARI) select(n->isprime(n^6+2), vector(2000, n, n-1)) /* Joerg Arndt, Sep 21 2012 */
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Sep 21 2012
STATUS
approved