OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
lst={}; Do[p=n^2; If[PrimeQ[p-2]&&PrimeQ[p+2], AppendTo[lst, p]], {n, 1, 7!, 2}]; lst
PROG
(PARI) forstep(n=3, 1e3, 6, if(isprime(n^2-2)&&isprime(n^2+2), print1(n^2", "))) \\ Charles R Greathouse IV, Oct 05 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Sep 25 2008
STATUS
approved