OFFSET
1,1
REFERENCES
Albert H. Beiler, Recreations in the theory of numbers, New York, Dover, (2nd ed.) 1966. See p. 226.
EXAMPLE
23 is a term since it equals 5 + 2*3^2.
MATHEMATICA
a={}; For[i=1, i<=63, i++, For[j=1, (d=Prime[i]-2j^2)>0, j++, If[PrimeQ[d]&&!MemberQ[a, Prime[i]], AppendTo[a, Prime[i]]]]]; a
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Aug 16 2024
STATUS
approved