OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[n_]:=PrimeQ[(n-1)^2+n^2+(n+1)^2]; lst={}; Do[p=Prime[n]; If[f[p], AppendTo[lst, p]], {n, 6!}]; lst (* Vladimir Joseph Stephan Orlovsky, Oct 27 2009 *)
Select[Prime[Range[600]], PrimeQ[3#^2+2]&] (* Harvey P. Dale, Nov 08 2011 *)
PROG
(Magma) [p: p in PrimesUpTo(5000)|IsPrime(3*p^2+2)] // Vincenzo Librandi, Jan 30 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Mar 23 2005
STATUS
approved