OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
fQ[n_]:=PrimeQ[n^3-12]&&PrimeQ[n^3+12]; lst={}; Do[If[fQ@Prime[n], AppendTo[lst, Prime[n]]], {n, 8!}]; lst
Select[Prime[Range[5000]], AllTrue[#^3+{12, -12}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 16 2020 *)
PROG
(Magma) [p: p in PrimesUpTo(50000)|IsPrime(p^3-12) and IsPrime(p^3+12)] // Vincenzo Librandi, Jan 30 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 23 2008
STATUS
approved