OFFSET
1,1
COMMENTS
All terms == 5 mod 6. Robert Israel, Aug 27 2015
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
11 is in the sequence because 11^9 + 2 = 2357947693 is a prime.
MAPLE
select(t -> isprime(t) and isprime(t^9+2), [seq(6*i-1, i=1..10^4)]); # Robert Israel, Aug 27 2015
MATHEMATICA
Select[Prime[Range[2000]], PrimeQ[#^9 + 2] &]
PROG
(Magma) [p: p in PrimesUpTo(20000) | IsPrime(p^9+2)];
(PARI) forprime(p=2, 10^4, if (isprime(p^9+2), print1(p, ", "))) \\ Anders Hellström, Aug 27 2015
(PARI) list(lim)=my(v=List(), t); forprime(p=2, lim, if(isprime(p^9+2), listput(v, p))); Vec(v) \\ Charles R Greathouse IV, Aug 27 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Aug 24 2015
STATUS
approved