OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
For p = 5, 2*5^2 - 39 = 11 and 2(5^2) + 39 = 89, both 11 and 89 are prime, thus 5 is in the sequence.
For p = 7, 2*7^2 - 39 = 59 and 2(7^2) + 39 = 137, both 59 and 137 are prime, thus 7 is in the sequence.
11 is NOT in the sequence, because even though 2(11^2) + 39 does give a prime (281), 2(11^2) - 39 does not, giving 203 = 7 * 29.
MATHEMATICA
Select[Prime[Range[3, 1000]], PrimeQ[2#^2 - 39] && PrimeQ[2#^2 + 39] &] (* Vincenzo Librandi, Oct 14 2012 *)
PROG
(Magma) [p: p in PrimesInInterval(3, 6000) | IsPrime(2*p^2-39) and IsPrime(2*p^2+39)];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 17 2010
STATUS
approved