In the forests of eastern North America live insects called periodical cicadas. Their young live underground, sucking sap from tree roots, for 13 years or for 17 years, depending on the kind. Then, in one spring, millions of them climb out at once, sing loudly for a few weeks, lay their eggs and die.
In 2024, a 13-year group and a 17-year group came out in the same year, in the state of Illinois. The last time those two groups did that was in 1803.
Scientists have noticed something curious: 13 and 17 are both numbers that make only one rectangle. Why might that help a cicada? Keep the question in mind: by the end of the lesson you will be able to give a possible answer.
In Lesson 1, tiles made only one rectangle: a single row. Today these βone-rectangleβ numbers get their name, and you will find all of them up to 100.
Try these first. Nothing is marked: just have a go and keep your answers in mind.
Which number of square tiles can be made into only one rectangle (a single row)?
What is the smallest factor of that is bigger than ?
How many whole numbers from to have exactly two factors?
Now meet the sieve, a way of sifting the one-rectangle numbers out of to . Start at : keep and cross out all the other multiples of (). Then go to the next number that is not crossed out, keep it, and cross out its multiples. Carry on.
You sieve the numbers from to like this: , then , then , then , β¦ Which is the first number whose turn crosses out nothing new?
In the sieve below, press the button again and again.
- Watch the table. For each circled number, what is the first new number it crosses out? Compare it with that number times itself.
- Which is the first circled number that crosses out nothing new? Why?
- When nothing new is being crossed out, press Circle all the rest. How many numbers are circled from to ?
- Try-first 1. makes only one rectangle (). The others make more: , , .
- Try-first 2. looks as if it makes only one rectangle, but . Its smallest factor bigger than is . Being odd and βlooking unusualβ is not enough.
- Try-first 3. From to , the numbers with exactly two factors are : there are . ( has only one factor, itself.)
- In the sieve, the first new number crossed out by is ; by it is ; by it is ; by it is . Smaller multiples, like , were already crossed out by a smaller number.
- So crosses out nothing new: its first new multiple would be . After , every number left, apart from , is one of the βtwo-factorβ numbers. There are of them from to .
Prime and composite numbers
A prime number is a whole number bigger than that has exactly two factors: and itself.
A composite number is a whole number bigger than that has more than two factors: It can be split as a product of two smaller whole numbers, like .
The number is neither prime nor composite.
is the only even prime.
Why 1 and 2 are special
Why 1 is not prime. has only one factor, so it does not fit βexactly twoβ. But mathematicians also had a deeper reason for setting up the definition this way. In Lesson 4 you will see that every whole number above can be built by multiplying primes in exactly one way, apart from the order: (or , the same primes in another order), and nothing else. If counted as a prime, that would break: So is left out, and the rule stays neat.
Why 2 is the only even prime. Every even number is something. For itself that βsomethingβ is , so has only the factors and : prime. For any bigger even number, is a factor as well as and the number itself, so it has at least three factors: composite.
Testing whether a number is prime
To test whether a number is prime, divide it by the primes in order.
- If one of them divides exactly, the number is composite.
- You can stop as soon as the prime times itself is bigger than the number. If no prime up to that point divides it, the number is prime.
Example: for , try . None divides . The next prime is , and is bigger than , so stop: is prime.
Why only primes? If divided a number, then would too (every group of splits into two s). If divided it, and would too. So if no prime divides the number, no composite number can divide it either.
Why stop at the square point? Remember the rectangles from Lesson 1. If the number is composite, it has a factor pair with neither equal to . In every pair, the smaller number is at most the βsquare pointβ. For : if both numbers in a pair were or more, their product would be at least , too big. So any factor pair of would have to include a number from to , and we checked all of those (through the primes ). That is exactly why the sieve on β could stop after : every composite number up to has a factor from to , and so a prime factor of , , or .
- Odd is not the same as prime. Many odd numbers are composite, for example , , , , , and . Always test.
- Ending in or does not make a number prime. and .
- is not prime, and is prime. Both surprise people.
- The stop rule uses βtimes itselfβ, not βhalfβ. To test you do not need to try every number up to : the primes up to are enough, because .
- Donβt stop too early. For , trying only is not enough: is still below , and in fact .
Is 221 prime?
Step 1: Where can we stop?
and . So any factor pair of has a number of at most . The primes to try are .
Step 2: The quick tests
is odd, so not . Digit sum , so not . It does not end in or , so not .
Step 3: Divide by 7, 11 and 13
, remainder . , remainder . , remainder !
Step 4: Conclusion, and is it sensible?
, so is composite. Check: β. It looked prime (odd, no quick test worked), which is exactly why we test carefully. And look: and are the two cicada cycles. A 13-year and a 17-year group come out together once every years, which matches the hook: β.
Two ways to show that 89 is prime
Way 1: Try every number
Divide by . None of them divides exactly. That is divisions.
Way 2: Primes up to the square point
and , so try only the primes . is odd; its digit sum is not a multiple of ; it does not end in or ; and , remainder . None divides. So is prime: 4 checks.
Which is neater?
Both prove is prime, but Way 2 does the same job with 4 checks instead of 87. Way 1 is not wrong, just slow, and with big numbers it becomes impossible by hand. Way 2 is only safe because of the two reasons in the box above: composite factors hide prime factors, and every factor pair has a small partner.
Which number is prime?
To test whether is prime, you try the primes What is the largest prime you need to try?
Still stuck after the example? Hearing it from another teacher often helps. This video was checked against this lesson. Try the questions again afterwards.
Prime Numbers - Sieve of Eratosthenes Β· Region 10 ESC Β· about 6 min
Works through the sieve of Eratosthenes on a 1 to 100 chart, crossing out multiples of 2, 3, 5 and 7, and shows why 1 is not prime and 2 is the only even prime.
Is there a largest prime number, or do they go on for ever? Try to imagine what would happen if someone claimed to have a list of all the primes. (You can dig into this on the Deep dig page.)
Which number is prime?
Cicadas and cycles
Here is a fact and a hypothesis.
Fact. Periodical cicadas in eastern North America come out every 13 or every 17 years.
Hypothesis. Some scientists have suggested that a prime cycle helps cicadas avoid predators whose numbers rise and fall in shorter cycles, such as every 2, 3, 4, 5 or 6 years. This is a hypothesis: scientists still argue about it, and other explanations exist (for example, ideas about cold periods long ago, or about different groups not mixing).
In these questions the predators are imaginary, so that we can test the idea with multiples. Count years from when the cicadas first come out.
Imagine a cicada with a 12-year cycle: it comes out in years An imaginary predator has a peak every 4 years: years
In how many of the cicada's first 5 appearances is there also a predator peak?
Now take a real 13-year cycle: the cicada comes out in years . The same imaginary predator peaks every years.
In how many of these appearances is there a predator peak?
Imaginary predators might have cycles of , , , or years.
How many of these five predator cycles would meet a 12-year cicada at every appearance?
Use your answers to explain, with factors and multiples, why a prime cycle like or years might help cicadas avoid predators with short cycles.
Then say clearly which part of your explanation is a fact and which part is a hypothesis, and give one reason why scientists are not sure.
π Work it out in your notebook first β sketch, calculate, then write your answer here in full sentences. A model answer appears after you submit, so you can compare.
Primes are the building blocks of whole numbers: in the next lesson you will break any number into primes, like breaking a molecule into atoms. Primes also keep your messages safe online. Multiplying two huge primes is quick for a computer, but going back from the answer to the two primes is so slow that no one can do it in practice for big enough numbers. Some of the codes that protect websites and online payments (such as the RSA system) rely on exactly this. The largest prime known (as of December 2026) is , a number with digits, found in October 2024 by a volunteer computing project called GIMPS.
Explain in your own words why, to test whether a number below 100 is prime, you only need to try 2, 3, 5 and 7.
A friend says '1 is prime because it can only be divided by 1 and itself.' What would you say to them?
- Prealgebra (Art of Problem Solving) β Chapter 3, section 3.3 Prime Numbers
The book goes deeper and its problems are harder. Read it after this lesson, with a pencil in your hand.