OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
A023204 := proc (n) if isprime(n) and isprime(2*n+3) = true then n end if end proc; seq(A023204(n), n=1..1000); # Wesley Ivan Hurt, Jun 28 2014
MATHEMATICA
f[n_]:=PrimeQ[2*n+3]; lst={}; Do[p=Prime[n]; If[f[p], AppendTo[lst, p]], {n, 6!}]; lst (* Vladimir Joseph Stephan Orlovsky, Oct 03 2009 *)
Select[Prime[Range[200]], PrimeQ[2#+3]&] (* Harvey P. Dale, May 03 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(1000) | IsPrime(2*p+3)]; // Vincenzo Librandi, Nov 20 2010
(PARI) is(n)=isprime(2*n+3)&&isprime(n) \\ Charles R Greathouse IV, Jul 02 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved