count lattice by ZED.CWT

for(Q=0;Q<51;++Q,print(U+'\\n'))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).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page