Jump to navigation Jump to search
i - Increment r - Stuff between this r and the next r are repeated twice, then jump to the command after the next r d - If accumulator is even, divide it by 2, otherwise decrement it m - If the accumulator is odd, multiply by 2, otherwise increment it p - Unless the accumulator is more than 7, let the accumulator be 2accumulator
Note that Easyfish has no I/O commands, but the accumulator is printed after the program terminates.
If you have a shorter one, you can replace it.
0 - 1 - i 2 - ii 3 - iii 4 - iip 5 - iipi 6 - iiim 7 - iiimi 8 - iiip 9 - iiipi 10 - iipim 16 - iipp 32 - iipip 64 - iiimp 128 - iiimip