Here is a small math problem from Bitwise Magazine that can be solved with the aid of Python:
Quote:
|
Ask a friend to choose a secret three-digit number (1 to 999). Then ask to divide it by 7 and tell the remainder. Then ask to divide the original number by 11 and again tell the remainder. Now repeat for a final time with 13. You now have three small numbers, and from these you can quickly identify the original three-digit number.
|