Skip to content

Loop through numbers as for the Collatz conjecture until they hit 1

License

Notifications You must be signed in to change notification settings

TimoWilken/collatz-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Playing with the Collatz conjecture

This program prints at least SETSIZE (its only command-line argument) numbers known to collapse to 1 for the Collatz conjecture. If the program loops infinitely, the number doesn't reach 1! This is obviously not a practical way of trying to prove the conjecture.

Try it

$ ghc -O2 -dynamic collatz
$ ./collatz 100

About

Loop through numbers as for the Collatz conjecture until they hit 1

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published