Factoradic Encoder by clock

#!ruby -n\x0d
i=$_.to_i;s='';1.upto(11){|n|s="#{i%n}"+s;i/=n};p s.to_i

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

download

return to the top page