FRACTRAN fixed by teebee

($_,$n)=<>;{print$n;$_ x=$n!~$$;$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