int i=stdin;for(i*=2;1<i;write(i))i=0<i%2?3i+1:(int).5i;

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

download

return to the top page