OFFSET
1,1
COMMENTS
Primes p such that 2*p+7, 4*p+21 and 8*p+49 are also primes. - Vincenzo Librandi, Aug 04 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 23 (mod 30) for n > 1. - John Cerkan, Sep 16 2016
MATHEMATICA
Select[Prime@ Range@ 7000, Times @@ Boole@ PrimeQ@ Rest@ NestList[2 # + 7 &, #, 3] > 0 &] (* Michael De Vlieger, Sep 19 2016 *)
Select[Prime[Range[7000]], AllTrue[Rest[NestList[2#+7&, #, 3]], PrimeQ]&] (* Harvey P. Dale, Dec 26 2022 *)
PROG
(Magma) [n: n in [1..100000] | IsPrime(n) and IsPrime(2*n+7) and IsPrime(4*n+21) and IsPrime(8*n+49)] // Vincenzo Librandi, Aug 04 2010
(PARI) is(n)=isprime(n) && isprime(2*n+7) && isprime(4*n+21) && isprime(8*n+49) \\ Charles R Greathouse IV, Sep 20 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved