OFFSET
1,1
COMMENTS
Primes p such that 5*p+4, 25*p+24 and 125*p+124 are also primes. - Vincenzo Librandi, Aug 04 2010
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Prime[Range[3500]], And@@PrimeQ[Rest[NestList[5#+4&, #, 3]]]&] (* Harvey P. Dale, Feb 01 2013 *)
PROG
(Magma) [n: n in [1..150000] | IsPrime(n) and IsPrime(5*n+4) and IsPrime(25*n+24) and IsPrime(125*n+124)] // Vincenzo Librandi, Aug 04 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved