Back to homeMathematics · 2nd ESO · Change subject
Start for free
ESO Y2 · Mathematics
Numbers · Natural numbers

Prime numbers

How can you tell whether $143$ is prime without trying to divide it by a hundred different numbers? There is a mathematical shortcut that saves you almost all of the work.

Before you start, make sure you know: Multiples, divisors and divisibility rules (1st ESO)
Before you start, make sure you know: Prime numbers and prime factorisation (1st ESO)

The Sieve of Eratosthenes

Sieve of Eratosthenes with the numbers 2 to 12: the multiples of 2, 3 and 5 are crossed out and the primes up to 30 are shown. 2345 6789 101112 Cross out the multiples of 2, then of 3, then of 5... What is left uncrossed are the primes. 2, 3, 5, 7, 11... Primes up to 30: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29
Practice★☆☆Not started
In a strategy video game, you need to classify energy crystals according to their purity. Crystals with prime numbers give extra energy, while composite numbers must be…

In a strategy video game, you need to classify energy crystals according to their purity. Crystals with prime numbers give extra energy, while composite numbers must be processed.

Classify the following numbers in the table in your notebook:

$11, 15, 23, 27, 31, 39, 42, 47, 51$

39 42 47 31 EXTRA ENERGY Prime Numbers Factors: 1 and itself 11 23 TO BE PROCESSED Composite Numbers Factors: More than 2 15 27
Solve
Practice★☆☆Not started
The Sieve of Eratosthenes is an ancient method for finding prime numbers by crossing out the multiples of earlier numbers. Look at the following grid of numbers from $1$…

The Sieve of Eratosthenes is an ancient method for finding prime numbers by crossing out the multiples of earlier numbers. Look at the following grid of numbers from $1$ to $20$:

1 2 3 5 7 11 13 17 19 4 6 8 9 10 12 14 15 16 18 20 Prime 4 Multiple 1 Not prime

Copy the grid into your notebook and complete the process up to the number $50$ to identify all prime numbers less than $50$.

Solve

Checking whether a number is prime

Trying every possible divisor of a large number one by one is very slow. There is a shortcut: you only need to test the primes up to the square root.

Diagram illustrating the method for checking whether a number is prime by testing only the prime divisors less than or equal to its square root. Is 143 prime? √143 ≈ 11,9 try 2, 3, 5, 7, 11 143 : 11 = 13 → not prime
Practice★★☆Not started
A messaging app uses a security filter that only allows messages through if their identifier is a prime number. Classify the following identifiers as prime numbers or…

A messaging app uses a security filter that only allows messages through if their identifier is a prime number. Classify the following identifiers as prime numbers or composite numbers, justifying your decision in each case by finding a factor other than 1 and the number itself:

  1. a) $119$
  2. b) $131$
  3. c) $143$
  4. d) $151$
  5. e) $203$
Solve
Practice★★★Not started
A cybersecurity expert is designing an encryption system for a messaging app. The main security key is a number $N$ obtained by multiplying a pair of twin prime numbers…

A cybersecurity expert is designing an encryption system for a messaging app. The main security key is a number $N$ obtained by multiplying a pair of twin prime numbers between $100$ and $110$. However, upon reviewing the list, he realizes that there are two pairs of twin primes in that interval, so the choice is not unique. To solve the problem, he decides that the key will be the product of the two prime numbers closest to $105$ (one below and one above).

Determine which two prime numbers these are, prove with reasons that they are prime using the square root method, and calculate the value of the security key $N$.

100 105 110 −2 +2 p₁ = ? Lower prime p₂ = ? Upper prime Security key N = p₁ · p₂
Solve

How many divisors does a number have?

If you know the prime factorisation of a number, you can work out how many divisors it has without having to list them all.

Diagram of the calculation of the number of divisors of 2³ · 3² by adding one to the exponents to obtain twelve divisors. N = 2³ · 3² number of divisors = (3+1)·(2+1) = 4 · 3 = 12 divisors
Practice★★☆Not started
Look at the following incomplete factor tree representing the prime factorisation of a natural number. Your task is to complete it and finally write down the…

Look at the following incomplete factor tree representing the prime factorisation of a natural number. Your task is to complete it and finally write down the factorisation of that number using powers of prime factors.

? ? 15 2 ? 3 5 2 2
Solve
Practice★★★Not started
A natural number is said to be "special" if it is the product of three distinct prime numbers less than $20$. An example would be $2 \cdot 3 \cdot 5 = 30$. Find the…

A natural number is said to be "special" if it is the product of three distinct prime numbers less than $20$. An example would be $2 \cdot 3 \cdot 5 = 30$.

Find the largest and smallest possible "special" numbers. Next, find how many factors each of these two numbers has without needing to list them all, using only the exponents of their prime factorisations.

Solve

Back to the start: Since $\sqrt{143} \approx 11{,}96$, it is enough to test the primes $2, 3, 5, 7$ and $11$. When we divide $143 : 11 = 13$, the division is exact, so $143$ is not prime ($143 = 11 \cdot 13$).

Summary

See all the exercises in this section