for(Q=0;Q<51;++Q,print(U))for(U=0,W=-Q;W<=Q;++W)for(E=-Q;E<=Q;++E)for(R=0;R<=Q;)U+=W*W+E*E+R*R++<=Q*Q&&1+(1<R)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page