The Collatz conjecture is a currently unsolved math problem, theorizing that every positive integer eventually leads to 1. How the algorithm works: Start with any positive number (decimals included). If the number is odd, multiply it by 3 and add 1. If the number is even, divide it by 2. It continues this process until it reaches 1.
Updated the code so it stops the script when it detects 1, 0 or a negative number.