OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
lst={}; Do[p=n^6+2; If[PrimeQ[p], AppendTo[lst, p]], {n, 6!}]; lst
Select[Table[n^6 + 2, {n, 0, 700}], PrimeQ] (* Vincenzo Librandi, Oct 12 2012 *)
PROG
(PARI)
v=select(n->isprime(n^6+2), vector(2000, n, n-1)); /* A216978 */
vector(#v, n, v[n]^6+2)
/* Joerg Arndt, Sep 21 2012 */
(Magma) [a: n in [0..700] | IsPrime(a) where a is n^6 + 2 ]; // Vincenzo Librandi, Oct 12 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Sep 21 2012
STATUS
approved