OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
FORMULA
The prime number 353 is in the sequence because 353 = 17^2 + 8^2 and 17 - 8 = 9 = 3^2.
MATHEMATICA
Select[Union[Total[#^2]&/@Select[Subsets[Range[100], {2}], #[[2]]-#[[1]]>1&&IntegerQ[Sqrt[#[[2]]-#[[1]]]]&]], PrimeQ] (* Harvey P. Dale, Dec 14 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Feb 14 2017
STATUS
approved