Collatz Problem by 51b

: c begin dup 0 .r cr dup 1- while dup 2 mod if 3 * 1+ else 2/ then repeat ;
stdin slurp-fid evaluate c

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

download

return to the top page