happy number by ksk

let rec($)i?(k=i mod 10)j=i=0&(j=1||j>4&j$0)||i>0&i/10$k*k+j;;for i=1to 2000do
i$0&Printf.printf"%d
"i=()done

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

download

return to the top page