Leo, the magician asks a member of the audience to write down at most seven distinct prime numbers ( ) without showing them to Leo. Then the chosen member multiply each number with itself, and tells the amount of the perfect squares to Leo. From that in a few secundum (without using calculator) Leo finds out how many numbers did the member write down.
For example if Sarah was the chosen member, and she writes down the numbers then she tells the number .
Imagine that now you are the magician and you do the same trick (as Leo did) to your friend, Bob. Bob tells you the number
How many numbers did Bob write down?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The square of an odd prime must be 1 mod 6, so we just need to take Bob's number mod 6, and we have the number of primes.