Program to calculate the Collatz sequence for very large integers. Using crate BigInt.
Input value can be entered like 27, 2^199, or 2^199-1.
My Mac mini with M2 and 8 GB Ram was able to handle at least 2^30000-1
Calculate and display the Collatz sequence (3n+1 problem) for very large integers. Sequence is handled as vector in memory.
Program to calculate the Collatz sequence for very large integers. Using crate BigInt.
Input value can be entered like 27, 2^199, or 2^199-1.
My Mac mini with M2 and 8 GB Ram was able to handle at least 2^30000-1
Calculate and display the Collatz sequence (3n+1 problem) for very large integers. Sequence is handled as vector in memory.