OFFSET
0,1
LINKS
Donovan Johnson, Table of n, a(n) for n = 0..5000
EXAMPLE
a(2) = 41 because 41 = 1+4+36 = 9+16+16.
a(2^10) = a(1024) = 3521909 = prime(251585). - Zak Seidov, Nov 10 2013
MATHEMATICA
lim=50; pLst=Table[0, {PrimePi[lim^2]}]; Do[n=a^2+b^2+c^2; If[n<lim^2 && PrimeQ[n], pLst[[PrimePi[n]]]++ ], {a, lim}, {b, a, Sqrt[lim^2-a^2]}, {c, b, Sqrt[lim^2-a^2-b^2]}; Table[First[Prime[Flatten[Position[pLst, n]]]], {n, 0, 38}]
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, May 21 2004
STATUS
approved