OFFSET
1,1
COMMENTS
Primes p such that 2*p+3, 4*p+9 and 8*p+21 are also primes. - Vincenzo Librandi, Aug 04 2010
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Prime[Range[5000]], AllTrue[Rest[NestList[2#+3&, #, 3]], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Mar 01 2016 *)
PROG
(Magma) [p: p in PrimesUpTo(50000) | IsPrime(2*p+3) and IsPrime(4*p+9) and IsPrime(8*p+21)]; // Vincenzo Librandi, Aug 04 2010
(Python)
from sympy import prime, isprime
A023273_list = [p for p in (prime(n) for n in range(1, 10**2)) if isprime(2*p+3) and isprime(4*p+9) and isprime(8*p+21)] # Chai Wah Wu, Sep 09 2014
(PARI) isok(n)=isprime(n) && isprime(2*n+3) && isprime(4*n+9) && isprime(8*n+21) \\ Edward Jiang, Sep 09 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved