Collatz Problem by ideo

<?c(fgets(STDIN));function c($x){echo"$x
";if($x==1)exit;$x%2?c(3*$x+1):c($x/2);}

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

download

return to the top page