OFFSET
1,1
COMMENTS
Primes p such that 9*p+4, 81*p+40, 729*p+364, 6561*p+3280 and 59049*p+29524 are also primes. - Vincenzo Librandi, Aug 05 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
MATHEMATICA
okQ[n_]:=And@@PrimeQ/@Rest[NestList[9#+4&, n, 5]]; Select[Prime[Range[100000]], okQ] (* Harvey P. Dale, Jan 29 2011 *)
PROG
(Magma) [n: n in [1..19000000] | IsPrime(n) and IsPrime(9*n+4) and IsPrime(81*n+40) and IsPrime(729*n+364) and IsPrime(6561*n+3280) and IsPrime(59049*n+29524)] // Vincenzo Librandi, Aug 05 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved