FRACTRAN fixed by teebee(tails)

($l,$n)=<>;{print$n;$_=$n-$$&&$l;$n%$1or$n=$n/$1*$&.$/,redo while/\d+ (\d+)/g}

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

download

return to the top page