happy number by uru

package
main
func
main(){for
i:=1;i<1996;i++{k:=i;for
j:=0;j<9;j++{s:=0;for
l:=0;l<9;l++{m:=k%10;s+=m*m;k/=10}k=s}if
k<2{println(i)}}}

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

download

return to the top page