OFFSET
1,1
EXAMPLE
31=2^2+3^3; 43=4^2+3^3.
MATHEMATICA
lst1={}; For[i=1, i<=60, For[j=1, j<=60, c=i^2+j^3; If[((PrimeQ[c]&&PrimeQ[c-2])||(PrimeQ[c]&&PrimeQ[c+2])), AppendTo[lst1, c]]; j++ ]; i++ ]; lst2=Take[Union[lst1], 80]
Select[Union[Flatten[Table[m^2+n^3, {m, 60}, {n, 60}]]], PrimeQ[#]&&AnyTrue[#+ {2, -2}, PrimeQ]&] (* Harvey P. Dale, Jul 02 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Sep 01 2008
STATUS
approved