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