This is to calculate a sequence of numbers that follows the Collatz Conjecture.
go install github.com/parithiban/[email protected]
cd $GOPATH/bin && ./collatzpattern
parthiban@C02DP2C8ML85 ~/mygit/collatz-conjecture-pattern main ● ./main
Enter the number: 100000000
The longest chain is 947 and the number is 63728127
Total Execution time 6082 ms