OFFSET
1,1
COMMENTS
Primes p such that 2*p+9, 4*p+27 and 8*p+63 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 10) for n > 1. - John Cerkan, Sep 16 2016
MAPLE
A023276:=n->`if`(isprime(n) and isprime(2*n+9) and isprime(4*n+27) and isprime(8*n+63), n, NULL): seq(A023276(n), n=1..10^5); # Wesley Ivan Hurt, Feb 11 2017
MATHEMATICA
Select[Prime@ Range@ 2600, Times @@ Boole@ PrimeQ@ Rest@ NestList[2 # + 9 &, #, 3] > 0 &] (* Michael De Vlieger, Sep 19 2016 *)
Select[Prime[Range[3000]], AllTrue[Rest[NestList[2#+9&, #, 3]], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jan 01 2017 *)
PROG
(Magma) [n: n in [1..100000] | IsPrime(n) and IsPrime(2*n+9) and IsPrime(4*n+27) and IsPrime(8*n+63)] // Vincenzo Librandi, Aug 04 2010
(PARI) is(n)=isprime(n) && isprime(2*n+9) && isprime(4*n+27) && isprime(8*n+63) \\ Charles R Greathouse IV, Sep 20 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved