View Single Post
Old May 18th, 2006, 10:13 AM   #24
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

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.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote