happy number by nn

for(s=n=0;t=n<2e3;s=s>4?t-1:++n,s-1||print(n))for each(c in''+s)t+=c*c

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page