OFFSET
1,13
LINKS
T. D. Noe, Table of n, a(n) for n=1..10000
EXAMPLE
a(13) = 2 because prime(13) = 41 = 1+4+36 = 9+16+16.
MATHEMATICA
lim=25; 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]}; pLst
Table[Count[PowersRepresentations[Prime[n], 3, 2], _?(Min[#]>0&)], {n, 110}] (* Harvey P. Dale, Feb 17 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, May 21 2004
STATUS
approved