OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (terms for n = 1..500 from Colin Barker)
EXAMPLE
The prime number 977 is in the sequence because 977 = 31^2 + 4^2 and 31 - 4 = 27 = 3^3.
MATHEMATICA
cg1Q[{a_, b_}]:=Module[{d=b-a}, PrimeQ[a^2+b^2]&&d>1&&IntegerQ[Surd[d, 3]]]; Total[#^2]&/@Select[Subsets[Range[200], {2}], cg1Q]//Union (* Harvey P. Dale, Apr 18 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Feb 14 2017
STATUS
approved