Sharkovskii order by leonid

puts$<.sort_by{|a|a=a.to_i;[a>(r=-a&a)?r:99-r,a]}

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

download

return top