OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
a={}; Do[p1=Prime[n]; p2=Prime[n+1]; pp=p1^3+p2^2; If[(p2-p1)==2&&PrimeQ[pp-1]&&PrimeQ[pp+1], AppendTo[a, p2]], {n, 10^4}]; Print[a];
Select[Partition[Prime[Range[30000]], 2, 1], #[[2]]-#[[1]]==2 && AllTrue[ #[[1]]^3+#[[2]]^2+{1, -1}, PrimeQ]&][[All, 2]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Sep 13 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 16 2008
EXTENSIONS
More terms from Harvey P. Dale, Sep 13 2018
STATUS
approved