OFFSET
1,1
COMMENTS
Primes p such that 5*p+4 and 25*p+24 are also primes. - Vincenzo Librandi, Aug 04 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 5 (mod 6). - John Cerkan, Sep 13 2016
MATHEMATICA
Select[Prime[Range[1000]], AllTrue[Rest[NestList[5#+4&, #, 2]], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 19 2019 *)
PROG
(Magma) [n: n in [0..100000] | IsPrime(n) and IsPrime(5*n+4) and IsPrime(25*n+24)] // Vincenzo Librandi, Aug 04 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved