happy number by nn

END{for(FS=_;2e3>$0=$0>4?$1^2+$2^2+$3^2+$4^2:++n;)if($$0)print n}

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

download

return to the top page