OFFSET
1,1
COMMENTS
Primes p such that 2*p+5, 4*p+15, 8*p+35 and 16*p+75 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 27 2016
MATHEMATICA
Select[Prime@ Range[10^4], Times @@ Boole@ PrimeQ@ Rest@ NestList[2 # + 5 &, #, 4] > 0 &] (* Michael De Vlieger, Sep 27 2016 *)
Select[Prime[Range[10000]], AllTrue[Rest[NestList[2#+5&, #, 4]], PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 23 2020 *)
PROG
(Magma) [n: n in [1..1000000] | IsPrime(n) and IsPrime(2*n+5) and IsPrime(4*n+15) and IsPrime(8*n+35) and IsPrime(16*n+75)]; // Vincenzo Librandi, Aug 04 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition clarified by Harvey P. Dale, Oct 23 2020
STATUS
approved