OFFSET
1,1
COMMENTS
Primes p such that 2*p + 3 and 4*p + 9 are also primes. - Vincenzo Librandi, Aug 04 2010
All terms > 5 end in 3 or 7. - Robert Israel, Jun 22 2015
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..7000
MAPLE
select(t -> isprime(t) and isprime(2*t+3) and isprime(4*t+9), [2, seq(2*i+1, i=1..10000)]); # Robert Israel, Jun 22 2015
MATHEMATICA
Select[Range[4 10^6], PrimeQ[#]&& PrimeQ[2 # + 3]&&PrimeQ[4 # + 9] &] (* Vincenzo Librandi, Jun 24 2014 *)
PROG
(Magma) [p: p in PrimesUpTo(10000) | IsPrime(2*p+3) and IsPrime(4*p+9)] // Vincenzo Librandi, Aug 04 2010 (simplified by Bruno Berselli)
(PARI) is(n)=isprime(n) && isprime(2*n+3) && isprime(4*n+9) \\ Charles R Greathouse IV, Sep 09 2014
(Sage) # By the definition:
def t(i): return 2*i+3
[p for p in primes(5000) if is_prime(t(p)) and is_prime(t(t(p)))] # Bruno Berselli, Sep 09 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved