OFFSET
1,1
LINKS
Felix Fröhlich, Table of n, a(n) for n = 1..242507 (all terms up to 10^9)
EXAMPLE
3 is in the sequence since it is the first member of the triple (3, 3^2-2, 3^2+4) and the resulting values in the triple (3, 7, 13) are all prime.
MATHEMATICA
Select[Prime[Range[1200]], AllTrue[#^2+{4, -2}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Apr 28 2018 *)
PROG
(PARI) forprime(p=2, 10^4, if(isprime(p^2-2) && isprime(p^2+4), print1(p, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Jun 28 2014
STATUS
approved