OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
lst={}; Do[p=Prime[n]; If[PrimeQ[p+p^2+p^3-4]&&PrimeQ[p+p^2+p^3+4], AppendTo[lst, p]], {n, 2*8!}]; lst
Select[Prime[Range[15000]], AllTrue[#+#^2+#^3+{4, -4}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Mar 16 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 15 2009
STATUS
approved