OFFSET
1,1
MATHEMATICA
fQ[n_]:=PrimeQ[n^2-60]&&PrimeQ[n^2+60]; lst={}; Do[If[fQ@Prime[n], AppendTo[lst, Prime[n]]], {n, 7!}]; lst
p260Q[n_]:=Module[{c=n^2}, And@@PrimeQ[{c-60, c+60}]]; Select[Prime[Range[ 800]], p260Q] (* Harvey P. Dale, Mar 06 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(5000)|IsPrime(p^2-60) and IsPrime(p^2+60)] // Vincenzo Librandi, Jan 30 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 23 2008
STATUS
approved