Study Blocks

World map β€Ί Factors, multiples & primes β€Ί Lesson 3

Prime numbers

⏱ about 45 min · MYP criteria A, B, C, D

By the end of this lesson you can…
🌍 The big question

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, 1717 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.

πŸ§ͺ Explore β€” try it, no scoring

Try these first. Nothing is marked: just have a go and keep your answers in mind.

no hints, nothing is marked

Which number of square tiles can be made into only one rectangle (a single row)?

no hints, nothing is marked

What is the smallest factor of 119119 that is bigger than 11?

no hints, nothing is marked

How many whole numbers from 11 to 2020 have exactly two factors?

Now meet the sieve, a way of sifting the one-rectangle numbers out of 11 to 100100. Start at 22: keep 22 and cross out all the other multiples of 22 (4,6,8,…4, 6, 8, \dots). Then go to the next number that is not crossed out, keep it, and cross out its multiples. Carry on.

🎯 Predict first

You sieve the numbers from 11 to 100100 like this: 22, then 33, then 55, then 77, … Which is the first number whose turn crosses out nothing new?

In the sieve below, press the button again and again.

  1. Watch the table. For each circled number, what is the first new number it crosses out? Compare it with that number times itself.
  2. Which is the first circled number that crosses out nothing new? Why?
  3. When nothing new is being crossed out, press Circle all the rest. How many numbers are circled from 11 to 100100?
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100

Press the button. The next number that is not crossed out is circled, and its multiples are crossed out.

1 is never circled or crossed out: it makes only one rectangle and has only one factor.

πŸ”Ž What do you notice?
  • Try-first 1. 1717 makes only one rectangle (1Γ—171 \times 17). The others make more: 15=3Γ—515 = 3 \times 5, β€…β€Š21=3Γ—7\; 21 = 3 \times 7, β€…β€Š27=3Γ—9\; 27 = 3 \times 9.
  • Try-first 2. 119119 looks as if it makes only one rectangle, but 119=7Γ—17119 = 7 \times 17. Its smallest factor bigger than 11 is 77. Being odd and β€œlooking unusual” is not enough.
  • Try-first 3. From 11 to 2020, the numbers with exactly two factors are 2,3,5,7,11,13,17,192, 3, 5, 7, 11, 13, 17, 19: there are 88. (11 has only one factor, 11 itself.)
  • In the sieve, the first new number crossed out by 22 is 4=2Γ—24 = 2 \times 2; by 33 it is 9=3Γ—39 = 3 \times 3; by 55 it is 25=5Γ—525 = 5 \times 5; by 77 it is 49=7Γ—749 = 7 \times 7. Smaller multiples, like 5Γ—3=155 \times 3 = 15, were already crossed out by a smaller number.
  • So 1111 crosses out nothing new: its first new multiple would be 11Γ—11=12111 \times 11 = 121. After 77, every number left, apart from 11, is one of the β€œtwo-factor” numbers. There are 2525 of them from 11 to 100100.
πŸ“ Key idea

Prime and composite numbers

A prime number is a whole number bigger than 11 that has exactly two factors: 11 and itself.

2,β€…β€Š3,β€…β€Š5,β€…β€Š7,β€…β€Š11,β€…β€Š13,β€…β€Š17,β€…β€Š19,β€…β€Š23,β€…β€Š29,β€…β€Šβ€¦2, \; 3, \; 5, \; 7, \; 11, \; 13, \; 17, \; 19, \; 23, \; 29, \; \dots

A composite number is a whole number bigger than 11 that has more than two factors: 4,6,8,9,10,12,…4, 6, 8, 9, 10, 12, \dots It can be split as a product of two smaller whole numbers, like 91=7Γ—1391 = 7 \times 13.

The number 11 is neither prime nor composite.

22 is the only even prime.

πŸ” Why it works

Why 1 and 2 are special

Why 1 is not prime. 11 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 11 can be built by multiplying primes in exactly one way, apart from the order: 12=2Γ—2Γ—312 = 2 \times 2 \times 3 (or 2Γ—3Γ—22 \times 3 \times 2, the same primes in another order), and nothing else. If 11 counted as a prime, that would break: 12=2Γ—2Γ—3=1Γ—2Γ—2Γ—3=1Γ—1Γ—2Γ—2Γ—3=…12 = 2 \times 2 \times 3 = 1 \times 2 \times 2 \times 3 = 1 \times 1 \times 2 \times 2 \times 3 = \dots So 11 is left out, and the rule stays neat.

Why 2 is the only even prime. Every even number is 2Γ—2 \times something. For 22 itself that β€œsomething” is 11, so 22 has only the factors 11 and 22: prime. For any bigger even number, 22 is a factor as well as 11 and the number itself, so it has at least three factors: composite.

πŸ“ Key idea

Testing whether a number is prime

To test whether a number is prime, divide it by the primes 2,3,5,7,11,…2, 3, 5, 7, 11, \dots 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 9797, try 2,3,5,72, 3, 5, 7. None divides 9797. The next prime is 1111, and 11Γ—11=12111 \times 11 = 121 is bigger than 9797, so stop: 9797 is prime.

πŸ” Why it works

Why only primes? If 44 divided a number, then 22 would too (every group of 44 splits into two 22s). If 66 divided it, 22 and 33 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 aΓ—ba \times b with neither equal to 11. In every pair, the smaller number is at most the β€œsquare point”. For 9797: if both numbers in a pair were 1010 or more, their product would be at least 10Γ—10=10010 \times 10 = 100, too big. So any factor pair of 9797 would have to include a number from 22 to 99, and we checked all of those (through the primes 2,3,5,72, 3, 5, 7). That is exactly why the sieve on 11–100100 could stop after 77: every composite number up to 100100 has a factor from 22 to 1010, and so a prime factor of 22, 33, 55 or 77.

⚠️ Watch out
  • Odd is not the same as prime. Many odd numbers are composite, for example 99, 1515, 2121, 4949, 5151, 5757 and 9191. Always test.
  • Ending in 1,3,71, 3, 7 or 99 does not make a number prime. 51=3Γ—1751 = 3 \times 17 and 91=7Γ—1391 = 7 \times 13.
  • 11 is not prime, and 22 is prime. Both surprise people.
  • The stop rule uses β€œtimes itself”, not β€œhalf”. To test 9797 you do not need to try every number up to 4848: the primes up to 77 are enough, because 11Γ—11=121>9711 \times 11 = 121 > 97.
  • Don’t stop too early. For 323323, trying only 2,3,5,72, 3, 5, 7 is not enough: 17Γ—17=28917 \times 17 = 289 is still below 323323, and in fact 323=17Γ—19323 = 17 \times 19.
🧱 Worked example

Is 221 prime?

Step 1: Where can we stop?

14Γ—14=19614 \times 14 = 196 and 15Γ—15=22515 \times 15 = 225. So any factor pair of 221221 has a number of at most 1414. The primes to try are 2,3,5,7,11,132, 3, 5, 7, 11, 13.

Step 2: The quick tests

221221 is odd, so not 22. Digit sum 2+2+1=52 + 2 + 1 = 5, so not 33. It does not end in 00 or 55, so not 55.

Step 3: Divide by 7, 11 and 13

7Γ—31=2177 \times 31 = 217, remainder 44. β€…β€Š11Γ—20=220\; 11 \times 20 = 220, remainder 11. β€…β€Š13Γ—17=221\; 13 \times 17 = 221, remainder 00!

Step 4: Conclusion, and is it sensible?

221=13Γ—17221 = 13 \times 17, so 221221 is composite. Check: 13Γ—17=130+91=22113 \times 17 = 130 + 91 = 221 βœ“. It looked prime (odd, no quick test worked), which is exactly why we test carefully. And look: 1313 and 1717 are the two cicada cycles. A 13-year and a 17-year group come out together once every 221221 years, which matches the hook: 1803+221=20241803 + 221 = 2024 βœ“.

🧱 Worked example

Two ways to show that 89 is prime

Way 1: Try every number

Divide 8989 by 2,3,4,5,…,882, 3, 4, 5, \dots, 88. None of them divides exactly. That is 8787 divisions.

Way 2: Primes up to the square point

9Γ—9=819 \times 9 = 81 and 10Γ—10=10010 \times 10 = 100, so try only the primes 2,3,5,72, 3, 5, 7. β€…β€Š89\; 89 is odd; its digit sum 1717 is not a multiple of 33; it does not end in 00 or 55; and 7Γ—12=847 \times 12 = 84, remainder 55. None divides. So 8989 is prime: 4 checks.

Which is neater?

Both prove 8989 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.

Foundation

Which number is prime?

IB Standard

To test whether 143143 is prime, you try the primes 2,3,5,7,…2, 3, 5, 7, \dots What is the largest prime you need to try?

🎬 Another explanation

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.

πŸ€” Pause and think

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.)

⛏ Practice β€” choose your level

Which number is prime?

πŸ— Build project β€” real-life task

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.

IB StandardCriterion D

Imagine a cicada with a 12-year cycle: it comes out in years 12,24,36,48,60,…12, 24, 36, 48, 60, \dots An imaginary predator has a peak every 4 years: years 4,8,12,16,…4, 8, 12, 16, \dots

In how many of the cicada's first 5 appearances is there also a predator peak?

IB StandardCriterion D

Now take a real 13-year cycle: the cicada comes out in years 13,26,39,52,6513, 26, 39, 52, 65. The same imaginary predator peaks every 44 years.

In how many of these 55 appearances is there a predator peak?

IB StandardCriterion D

Imaginary predators might have cycles of 22, 33, 44, 55 or 66 years.

How many of these five predator cycles would meet a 12-year cicada at every appearance?

ExtensionCriterion D

Use your answers to explain, with factors and multiples, why a prime cycle like 1313 or 1717 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.

πŸ”— Connections

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 2136 279 841βˆ’12^{136\,279\,841} - 1, a number with 41 024 32041\,024\,320 digits, found in October 2024 by a volunteer computing project called GIMPS.

πŸͺž Reflect

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?

πŸ“– Read more in your book
  • 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.