Practical Numbers by nn

1.upto($$){|n|i=s=1
s-=n%(i+=1)<1?1-i:1while s>0
p n if i>n}

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

download

return top