OFFSET
1,1
COMMENTS
Primes p such that 8*p+5, 64*p+45 and 512*p+365 are also primes. - Vincenzo Librandi, Aug 04 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 1 (mod 6). - John Cerkan, Sep 23 2016
MATHEMATICA
Select[Prime[Range[5000]], AllTrue[Rest[NestList[8#+5&, #, 3]], PrimeQ]&] (* Harvey P. Dale, Sep 19 2022 *)
PROG
(Magma) [n: n in [1..450000] | IsPrime(n) and IsPrime(8*n+5) and IsPrime(64*n+45) and IsPrime(512*n+365)]; // Vincenzo Librandi, Aug 04 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved