happy number by shinh

2000.times{|o|n=o
n=eval(n.to_s.gsub /./,'+\&**2')until n<5
n==1&&p(o)}

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

download

return top