Skip to content

parithiban/collatzpattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collatz Conjecture Pattern

This is to calculate a sequence of numbers that follows the Collatz Conjecture.

Install & Execute

go install github.com/parithiban/[email protected]
cd $GOPATH/bin && ./collatzpattern

Execution Time

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