Find the correct number in binary! I tested it multiple times and it works. Please tell me if there is a bug in the game.
Thanks to QuantumCodes for the decimal to binary conversion script.