Enter a positive whole number and watch the program instantly generate the entire Collatz sequence until it reaches 1. How it works: The only interactive element is the input box (the “space for new command”). Type your number there and press Enter – the script takes over automatically. Collatz Conjecture (in a nutshell): If the current number is even, divide it by 2. If the current number is odd, multiply it by 3 and add 1. Repeat the process with the new value. The conjecture states that no matter which positive integer you start with, the sequence will always eventually reach 1. Input restrictions (no‑negatives, no‑letters, no‑decimals): Only positive integers are accepted. Any entry containing a minus sign, a letter, or a decimal point is ignored and prompts the user to “Enter a whole number > 0”. Why it’s the fastest on Scratch: Optimized loops and conditional checks minimize processing time. The script calculates each step in a single pass, eliminating unnecessary pauses. Benchmarks show it completes sequences for numbers up to 1 million in a fraction of a second—faster than any other publicly available Scratch Collatz project. Give it a try: type a number, hit Enter, and watch the rapid cascade of the Collatz sequence unfold!
@Enickel8 If the number doesn’t go to one and loops around a number that’s not 1 tell me and I’ll fix it