OFFSET
1,1
COMMENTS
Primes p such that 5*p+6, 25*p+36, 125*p+186, 625*p+936 and 3125*p+4686 are also primes. - Vincenzo Librandi, Aug 05 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 9 (mod 14). - John Cerkan, Oct 20 2016
MATHEMATICA
Select[Prime[Range[250000]], And@@PrimeQ[Rest[NestList[5#+6&, #, 5]]]&] (* Harvey P. Dale, Jan 03 2014 *)
PROG
(Magma) [n: n in [1..10000000] | IsPrime(n) and IsPrime(5*n+6) and IsPrime(25*n+36) and IsPrime(125*n+186) and IsPrime(625*n+936) and IsPrime(3125*n+4686)] // Vincenzo Librandi, Aug 05 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved