FRACTRAN fixed by tails

($_,$y)=<>;{print$y;$_ x=$y!=$$;$y%$1or$y=$y/$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