HumanDebugminigames & tests

Your streak

How it works

The site has a new address

We're now at humandebug.eu. We've brought over the progress saved in your browser.

If you had an account, sign in again: your leaderboards, records and streak are waiting for you, nothing has been lost.

Sign in

The sieve of Eratosthenes, turned into a puzzle

By Luigi Federico · updated

More than 2,200 years ago, Eratosthenes of Cyrene found a simple way to track down prime numbers: write out all the numbers and cross out the multiples of 2, then of 3, then of 5, and so on. What remains are the primes. The Sieve uses the same idea in reverse: you divide the numbers until nothing is left.

Play The Sieve5–15 min, new every day, free

Prime numbers in two lines

A prime number can only be divided by 1 and by itself: 2, 3, 5, 7, 11, 13… Every other number can be written in exactly one way as a product of primes: 60 is 2 × 2 × 3 × 5. This is the fundamental theorem of arithmetic.

How to play The Sieve

You have a grid of numbers and three primes in your hand. Pick a prime and tap one of its multiples: that number and its multiples in the 3×3 square around it are divided once. A number that reaches 1 explodes and in turn divides its neighbours: a chain reaction.

After three tiles, new numbers arrive. If the grid fills up or you discard a tile with no multiples, you lose a life. The game is endless: the goal is to score as many points as you can.

Strategy

Order matters: a divided number can become a multiple of the next tile. Look for squares with lots of multiples and numbers close to exploding. Watch the next divisors: the new numbers will be made from them.

The mystery of the primes

The primes never run out, as Euclid already knew, but how they are spread among the other numbers is still one of the great open problems in mathematics: it's the question behind the Riemann hypothesis, unproven since 1859.

Frequently asked questions

Does the sieve of Eratosthenes still work?
Yes, it's still one of the simplest and most efficient ways to find all the primes up to a few million.
Do you need to be good at maths to play The Sieve?
You just need to recognise multiples of small numbers. The rest is strategy: where to strike and in what order.
Can you empty the whole grid?
Yes, now and then a combination arrives that makes it possible: it's the "Trivial zero" and it's worth a mega bonus.
When does the game end?
When you run out of lives: you have 3, at most 5. There's no winning; the goal is to score as many points as you can.
What is the combo?
Every move with at least one explosion raises it, up to ×10, and it multiplies your points. A whole hand with no explosions resets it.
Can I resume the game?
Yes, if you're signed in, the daily game can be resumed within 24 hours from where you left it.
Is it free? Do I need to sign up?
Yes, it's free and you play in your phone or computer browser, with no app and no sign-up. An account is only needed to join the leaderboard and keep your results across devices.
When does the challenge change?
Every day at midnight, Italian time. The challenge is the same for everyone, and you can replay the previous 7 days or practise with ever-new games that don't count for the leaderboard.

Source: Clay Mathematics Institute, Millennium Problems: the Riemann hypothesis.

Educational content, not medical or psychological advice.

More guides