Rules

Each hour, a random integer will be picked between 0 and "1000. You will then have 10 guesses to guess the number. Each guess will be associated with a prime number, given in increasing order. For a guess associated with prime p, the game will tell you the p-adic distance between your guess and the target number. Good luck!

p-adic Distance

For a fixed prime p, define the p-adic norm of an integer x as p-k, where x = npk, with n not divisible by p. For example, for p = 3, the p-adic norm of 6 is 1/3, the p-adic norm of 9 is 1/9, and the p-adic norm of 11 is 1. The p-adic distance between two integers is the p-adic norm of the difference. For example, the 3-adic distance between 22 and 4 is the 3-adic norm of 22-4 = 18, which would be 1/9.

Dark Mode:
Github

Note: I, pg132, did not make most of the code, instead I took it from here. All of the credit goes to them.