FRACTRAN fixed by murky-satyr

for(n=(r=readline)(f=r().split(' '));n-2760;)for(j=~print(m=n);(n=m*f[++j]/f[++j])%1;);

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

download

return to the top page