happy number by yamaya

for i=1,2e3 do
j=i
repeat loadstring("j=0"..("").gsub(j,".","+%1^2"))()until j<5
_=j>1 or print(i)end

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

download

return to the top page