OFFSET
1,1
COMMENTS
3+9+27=39-+2=primes,...
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-2]&&PrimeQ[p+p^2+p^3+2], AppendTo[lst, p]], {n, 8!}]; lst
Select[Prime[Range[3000]], AllTrue[#+#^2+#^3+{2, -2}, PrimeQ]&] (* Harvey P. Dale, Nov 30 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 15 2009
EXTENSIONS
Definition clarified by Harvey P. Dale, Nov 30 2022
STATUS
approved