Skip to content

Instantly share code, notes, and snippets.

@genos
Created September 8, 2011 19:47
Show Gist options
  • Save genos/1204474 to your computer and use it in GitHub Desktop.
Save genos/1204474 to your computer and use it in GitHub Desktop.
Obfuscated C code to play with the Collatz Conjecture
main(int c,char **v){int n=atoi(v[1]);while(n-1){n=n&1?3*n+1:n/2;printf("%d\n",n);}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment