ilikecats 6c585086cd Revert "Strip binary after compilation"
This reverts commit ee09a8aa012b1e1494eb1d2f543529da9aabf3ec.

Revert previous commit, I want to commit to both branches
2024-07-07 19:04:56 -07:00
2024-07-07 17:39:59 -07:00
2024-07-07 18:54:06 -07:00
2024-07-07 18:57:17 -07:00
2024-07-07 18:54:06 -07:00

Collatz conjecture solver

(x%2==0) ? x/=2 : x=x*3+1;

You probably want the GMP version for arbitrarily big numbers. Get it from the GMP branch.

Program to solver the Collatz conjecture.

Algorithm:

  • Start with number.
  • If number is even, divide by two.
  • If number is odd, multiply by three and add one.
  • Repeat.

To figure out if it will repeat, save all the previous numbers, and check if the current number is one of those. If it is, that means it will repeat, and you have disproved the Collatz conjecture. So far, though, nobody has disproven it up to 2^68.

Description
Collatz conjecture solver
Readme 43 KiB
2.0 Latest
2024-07-08 12:10:10 -04:00
Languages
C++ 88.9%
Makefile 11.1%