happy number by hide24

puts (1..$$).select{|i|i=eval"#{i}".gsub /./,'+\&**2'while i>6;2>i}

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

download

return top