OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MAPLE
S := {}: for x from 0 to 100 do for y from 0 to 100 do S := S union {x^2+y^2+2} od:od:S := sort(convert(S, list)): for i from 1 to 500 do if isprime(S[i]) then printf(`%d, `, S[i]) fi:od: # James A. Sellers, Feb 25 2003
MATHEMATICA
f[upto_]:=Module[{max=Ceiling[Sqrt[upto]]}, Select[Select[ Union[Total[#]+2&/@(Tuples[Range[0, max], {2}]^2)], PrimeQ], #<=upto&]]; f[1250] (* Harvey P. Dale, Mar 19 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Feb 18 2003
EXTENSIONS
More terms from James A. Sellers, Feb 25 2003
STATUS
approved