OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
fQ[n_]:=PrimeQ[n^2-42]&&PrimeQ[n^2+42]; lst={}; Do[If[fQ@Prime[n], AppendTo[lst, Prime[n]]], {n, 7!}]; lst
Select[Prime[Range[6000]], PrimeQ[#^2 - 42]&&PrimeQ[#^2 + 42]&] (* Vincenzo Librandi, Apr 08 2013 *)
PROG
(Magma) [p: p in PrimesUpTo(6000) | IsPrime(p^2-42) and IsPrime(p^2+42)]; // Vincenzo Librandi, Apr 08 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 18 2008
STATUS
approved