OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[15000]], AllTrue[{NextPrime[#^2, -1]-2, NextPrime[ #^2]+2}, PrimeQ]&] (* Harvey P. Dale, Jun 12 2022 *)
PROG
(PARI) is(n)=isprime(precprime(n^2)-2) && isprime(nextprime(n^2)+2) && isprime(n) \\ Charles R Greathouse IV, Jun 25 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jun 25 2013
EXTENSIONS
a(3)-a(34) from Giovanni Resta, Jun 13 2013
a(10) inserted by Charles R Greathouse IV, Jun 25 2013
STATUS
approved