Turing Machine by rst76

main=interact$f""0 2.map words.lines
f s i j m|j<2=s|0<1=f(take i s++a:drop(i+1)s)(max i 0+b%61)(c%63)m where[a,b,c]=m!!k!!j;k|i<0=1|0<1=(s++"0")!!i%47
n%i=fromEnum n-i

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

download

return to the top page