ratwolfzero / collatz_bigint

Calculate and display the Collatz sequence (3n+1 problem) for very large integers. Sequence is handled as vector in memory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collatz_bigint

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

About

Calculate and display the Collatz sequence (3n+1 problem) for very large integers. Sequence is handled as vector in memory.


Languages

Language:Rust 100.0%