Collatz Parity by jesanfafon

class P{static void Main(){int i=256,j,t;System.Action<char>f=System.Console.Write;for(;(t=i--)>=-256;){for(j=0;j++<64;){if(t%2==0){f(' ');t/=2;}else{f('#');t=3*t+1>>1;}}f('|');f('\n');}}}

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

download

return to the top page