happy number by ichirin

i,j;main(k){for(;i++<2e3;j-1?:printf("%d\n",i))for(j=i;j>5;j=k)for(k=0;j;j/=10)k+=pow(j%10,2);}

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

download

return to the top page