Collatz Problem by emoken

:$<
#include "std/num.wake"
s0(.*):$(div($1,2))
s1(.*):$(add($(mul($1,3)),1))
1:"1"
.*:"$&\n"s$(mod($&,2))$&

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

download

return to the top page