OFFSET
1,1
COMMENTS
Primes p such that 9*p+2, 81*p+20, 729*p+182, 6561*p+1640 and 59049*p+14762 are also primes. - Vincenzo Librandi, Aug 05 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[50000]], AllTrue[Rest[NestList[9#+2&, #, 5]], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 24 2017 *)
PROG
(Magma) [n: n in [1..19000000] | IsPrime(n) and IsPrime(9*n+2) and IsPrime(81*n+20) and IsPrime(729*n+182) and IsPrime(6561*n+1640) and IsPrime(59049*n+14762)] // Vincenzo Librandi, Aug 05 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved