Sharkovskii order by Lost_dog

import List
main=interact$unlines.sortBy((.g).compare.g).lines
n+1#x|x<2=n|odd x=x-n^99|0<1=n#div x 2
g=(9#).read

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

download

return to the top page