Back to homeMathematics · Secondary Year 1 · Change subject
Start for free
Secondary 1 · Mathematics
Numbers · Divisibility

Prime Numbers and Prime Factorization

At school, the Physical Education teacher wants to line up the students in equal rows. With $13$ students there is only one row of $13$ (or each student alone). With $12$, however, he can make $2 \times 6$, $3 \times 4$, $1 \times 12$... Why can some numbers be arranged this way and others cannot? The answer lies in their divisors.

Prime and Composite Numbers

Comparison of rectangles: 7 only allows one row of 1 by 7, while 12 allows 1 by 12, 2 by 6, and 3 by 4. 7 (prime) 1 × 7 — only one way 12 (composite) 1×12 2×6 3×4

To find out whether a number is prime, you can use the divisibility rules you already know (for $2$, $3$, $5$...): if any of them applies, the number is composite (except $2$, $3$, or $5$ themselves).

Practice★☆☆Not started
In PE class, the teacher wants to arrange the $13$ students into perfect rows and columns for an exercise (for example, $2$ rows of $6$ people). a) Why can they not do…

In PE class, the teacher wants to arrange the $13$ students into perfect rows and columns for an exercise (for example, $2$ rows of $6$ people).

  1. a) Why can they not do this with $13$ students in any way other than a single row of $13$?
  2. b) What type of number is $13$ based on its factors?
3 4 12 = 3 × 4 1 left over! 13 = 3 × 4 + 1 1 13 13 = 1 × 13
Solve
Practice★☆☆Not started
Classify the following numbers in the table according to whether they are prime (they only have two factors: $1$ and themselves) or composite (they have more than two…

Classify the following numbers in the table according to whether they are prime (they only have two factors: $1$ and themselves) or composite (they have more than two factors):

$11, 14, 19, 21, 23, 27, 31, 33$

Prime Numbers Composite Numbers
Solve
Practice★★☆Not started
Classify the following numbers as prime or composite, justifying your answer using the divisibility rules. For the composite numbers, state at least one divisor other…

Classify the following numbers as prime or composite, justifying your answer using the divisibility rules. For the composite numbers, state at least one divisor other than $1$ and the number itself:

$47, 51, 67, 87, 91, 101$

Solve

The Sieve of Eratosthenes

More than 2,000 years ago, Eratosthenes came up with a "filter" to find all the primes up to a given number: you cross out the multiples of each prime that appears, and what survives is prime.

Sieve of Eratosthenes grid from 1 to 10: 2, 3, 5, and 7 survive. 1 2 3 4 5 6 7 8 9 10 gray: crossed out (1 on its own, and the multiples of 2, 3, or 5) colored: surviving primes → 2, 3, 5, 7

The sieve step by step

An algorithm is a precise list of instructions. To find the primes up to $30$:

  1. Write the numbers from $2$ to $30$. The $1$ is left out because it is not prime.

  2. Circle the smallest number that is not yet circled or crossed out.

  3. Cross out its multiples greater than it, without crossing out the circled number.

  4. Repeat steps 2 and 3 until every number is circled or crossed out. The circled ones are the primes.

Practice★☆☆Not started
At a card collectors' convention, the display stands are numbered from $10$ to $25$. The organisers want to highlight stands with a prime number using an orange sign.…

At a card collectors' convention, the display stands are numbered from $10$ to $25$. The organisers want to highlight stands with a prime number using an orange sign. Write the list of all stand numbers that should have an orange sign.

STAND 10 STAND 11 STAND 12 STAND 13 STAND 14 STAND 15 STAND 16 STAND 17 STAND 18 STAND 19 STAND 20 STAND 21 STAND 22 STAND 23 STAND 24 STAND 25 Orange sign (Prime Number) To check
Solve
Practice★☆☆Not started
The Sieve of Eratosthenes works like a filter that lets only prime numbers through. If we pour the numbers from $1$ to $10$ into the filter, explain why the number $1$…

The Sieve of Eratosthenes works like a filter that lets only prime numbers through. If we pour the numbers from $1$ to $10$ into the filter, explain why the number $1$ is not considered prime and why the number $9$ gets trapped in the filter for composite numbers.

Input: 1 to 10 1 Discarded Neither prime nor composite 4 6 8 10 9 Trapped Is composite 9 = 3² 7 5 3 2 Prime Numbers Pass the filter
Solve

How Far Do You Need to Test?

The sieve is useful for lists, but what if you want to know whether a single number, like $601$, is prime? You don't need to test every number before it.

How to estimate the square root without a calculator

Find two perfect squares that $N$ lies between. For example, for $N = 53$: $7^2 = 49$ and $8^2 = 64$, so $\sqrt{53}$ is between $7$ and $8$. That is enough: we test the primes up to $7$.

Practice★★☆Not started
In a math class, the teacher says that to find out if a number less than $100$ is prime, it is sufficient to check that it is not divisible by $2, 3, 5$ and $7$. Explain…

In a math class, the teacher says that to find out if a number less than $100$ is prime, it is sufficient to check that it is not divisible by $2, 3, 5$ and $7$.

Explain why there is no need to check if it is divisible by $11$ or by other larger prime numbers. Apply this idea to check if the number $97$ is prime.

Solve
Practice★★★Not started
To check whether the number $601$ is prime, a student claims that they only need to divide it by the prime numbers less than $25$. a) Justify why the student has chosen…

To check whether the number $601$ is prime, a student claims that they only need to divide it by the prime numbers less than $25$.

  1. a) Justify why the student has chosen the number $25$ as a limit.
  2. b) Carry out the necessary divisions following their reasoning and determine whether $601$ is prime or composite.
  3. c) What is the largest prime number you would have to test to know if $1009$ is prime?
Solve

Prime Factorization

Every composite number can be written as a product of prime numbers: they are the "bricks" it is built from.

Vertical bar of the factorization of 120: two cubed times three times five. 1202 602 302 153 55 1 120 = 2³ · 3 · 5
Practice★☆☆Not started
Find the prime factorisation of the number $40$ using the vertical line method and express the result as a product of powers.

Find the prime factorisation of the number $40$ using the vertical line method and express the result as a product of powers.

Solve
Practice★★☆Not started
Find the prime factorisation of the following numbers using the vertical line method. Express the final result using powers where possible: a) $180$ b) $252$ c) $450$

Find the prime factorisation of the following numbers using the vertical line method. Express the final result using powers where possible:

  1. a) $180$
  2. b) $252$
  3. c) $450$
Solve
Practice★★☆Not started
Sometimes, to factorize numbers ending in zero, we can use mental "shortcuts". For example, we know that $10 = 2 \times 5$, so each trailing zero contributes a factor…

Sometimes, to factorize numbers ending in zero, we can use mental "shortcuts". For example, we know that $10 = 2 \times 5$, so each trailing zero contributes a factor $2$ and a factor $5$.

Factorize the following numbers using this trick to save steps in the vertical line (you can remove each trailing zero at once by writing $2 \times 5$ on the right):

  1. a) $1,200$
  2. b) $4,500$
  3. c) $18,000$
Diagram of the shortcut: a trailing zero breaks down into the factors 2 and 5 SHORTCUT 0 2 5 Each trailing zero contributes a 2 and a 5
Solve

Factor Tree and Division Tower

There are two more ways to look at the same factorization.

Factor tree. Split the number into any two factors. If a factor is not prime, split it again. Stop when every branch ends in a prime.

Factor tree of 60: it splits into 6 and 10, and these into 2·3 and 2·5, giving 2 squared times 3 times 5. 60 6 10 2 3 2 5 60 = 2² · 3 · 5

It doesn't matter how you split the number at the start ($60 = 6 \times 10$ or $60 = 4 \times 15$): in the end you get the same primes.

Division tower. It is the vertical bar seen as a tower: each level has the number on the left and the prime it is divided by on the right; the last level is $1$.

Practice★★☆Not started
Fill in the blanks in this factor tree for the number $120$. Remember that each branch must end in a prime number for the factorisation to be complete. Then write the…

Fill in the blanks in this factor tree for the number $120$. Remember that each branch must end in a prime number for the factorisation to be complete. Then write the final result using powers.

120 12 ? ? 4 ? ? ? ? 120 =
Solve
Practice★☆☆Not started
Look at the following "division tower" (prime factorisation) and identify the missing numbers in the blank spaces so that it is correct:

Look at the following "division tower" (prime factorisation) and identify the missing numbers in the blank spaces so that it is correct:

60 30 5 1 2 3 5 ÷2
Solve
Practice★☆☆Not started
The number $12$ can be represented in a rectangular shape in several ways (for example, $2 \times 6$ or $3 \times 4$). However, a prime number can only form a single…

The number $12$ can be represented in a rectangular shape in several ways (for example, $2 \times 6$ or $3 \times 4$). However, a prime number can only form a single row.

Look at the drawing and find the prime factorisation of the total number of dots forming the rectangle:

Hint: Both sides of the rectangle are prime
Solve

From Factors Back to the Number

Now the reverse path: you have the factorization and you want to know which number it is. Work out each power and multiply.

This path is also useful for completing factorizations where a piece of data is missing: if you know the original number, the product of the factors must give that number.

Practice★☆☆Not started
Find out which number it is in each case by working out the powers and multiplying the factors: a) $2^2 \times 3 \times 5 = $ b) $2 \times 3^3 = $ c) $3^2 \times 11 = $

Find out which number it is in each case by working out the powers and multiplying the factors:

  1. a) $2^2 \times 3 \times 5 = $
  2. b) $2 \times 3^3 = $
  3. c) $3^2 \times 11 = $
Solve
Practice★★★Not started
In the math lab, an incomplete prime factorization has been left on the board. Help reconstruct it knowing that the original number is less than $500$. Calculate the…

In the math lab, an incomplete prime factorization has been left on the board. Help reconstruct it knowing that the original number is less than $500$.

X < 500 X Y 25 5 1 2 P 5 5

Calculate the value of the original number $X$, the intermediate quotient $Y$ and the prime factor $P$ knowing that $P$ is the smallest possible prime number that makes $X$ a multiple of $3$.

Solve

Divisors from the Factorization

Combination of the powers of 2 with the powers of 13 to obtain all the divisors of 52. N = 2² · 13 1 2 4 13 26 52 powers of 2 × 1 o × 13
Practice★★☆Not started
Find all the factors of the number $N$ knowing that its prime factorisation is $N = 2^2 \times 13$. Is $N$ a composite or prime number? Justify your answer based on the…

Find all the factors of the number $N$ knowing that its prime factorisation is $N = 2^2 \times 13$. Is $N$ a composite or prime number? Justify your answer based on the definition of these types of numbers.

Solve
Practice★★☆Not started
Find all the factors of the following numbers using their prime factorisation. Show the process of combining factors: a) $28$ b) $42$

Find all the factors of the following numbers using their prime factorisation. Show the process of combining factors:

  1. a) $28$
  2. b) $42$
Solve
Practice★★★Not started
Find the smallest number that has exactly $6$ factors, knowing that only the first two prime numbers appear in its prime factorisation. Explain your reasoning by…

Find the smallest number that has exactly $6$ factors, knowing that only the first two prime numbers appear in its prime factorisation. Explain your reasoning by analysing the exponents in its factorisation.

N = 2ᵃ · 3ᵇ (a+1) · (b+1) = 6 6 factors in total 1 N Pairs multiplying to N
Solve

Using Factorization for Divisibility and Common Factors

The prime factorization tells you a lot about a number without calculating it.

  • A number is divisible by another if its factorization contains all the primes of the other, with at least the same exponents. For example, $2^3 \cdot 3 \cdot 5^2$ is divisible by $30 = 2 \cdot 3 \cdot 5$, but not by $16 = 2^4$ (it only has $2^3$).

  • The common divisors of two numbers come from the primes they share. The GCF is the product of the common primes with their smallest exponent.

  • To find the value that meets remainder conditions, use common multiples: the LCM is the product of all the primes with their largest exponent.

Practice★★☆Not started
Marta has a collection of old coins. If she groups them $6$ by $6$, she has $3$ left over. If she groups them $10$ by $10$, she also has $3$ left over. Knowing that she…

Marta has a collection of old coins. If she groups them $6$ by $6$, she has $3$ left over. If she groups them $10$ by $10$, she also has $3$ left over.

Knowing that she has more than $50$ coins but fewer than $80$, exactly how many coins does Marta have in her collection? (Hint: relate the problem to the concept of least common multiple).

Solve
Practice★★★Not started
Given the numbers $A = 2^4 \times 3^2 \times 5 \times 11$ and $B = 2^3 \times 3^4 \times 7$. Without calculating the numerical value of $A$ or $B$, answer giving…

Given the numbers $A = 2^4 \times 3^2 \times 5 \times 11$ and $B = 2^3 \times 3^4 \times 7$.

Without calculating the numerical value of $A$ or $B$, answer giving reasons:

  1. a) Is the product $A \times B$ divisible by $55$?
  2. b) Is the product $A \times B$ a multiple of $54$?
  3. c) What is the prime factorisation of the number resulting from $M.C.D.(A, B)$?
Solve
Practice★★★Not started
The area of a rectangular garden is $252$ $m^2$. If we know that its side lengths (in meters) are natural numbers and that the longer side is a multiple of $3$ and of…

The area of a rectangular garden is $252$ $m^2$. If we know that its side lengths (in meters) are natural numbers and that the longer side is a multiple of $3$ and of $7$, but not of $2$, use the prime factorization of the number $252$ to find all possible dimensions of the garden.

Solve

Challenges with Prime Factors

For the harder problems, combine what you have learned: factor, count divisors, and look for the number that meets the conditions.

Practice★★★Not started
A natural number $N$ has the following property: its prime factorisation is of the form $2^a \times 3^b$. We know that if we multiply $N$ by $2$, its number of factors…

A natural number $N$ has the following property: its prime factorisation is of the form $2^a \times 3^b$. We know that if we multiply $N$ by $2$, its number of factors increases by $3$, and if we multiply it by $3$, its number of factors increases by $4$.

Calculate the value of the exponents $a$ and $b$, and find the number $N$.

Solve
Practice★★★Not started
A "perfect" number is one that is equal to the sum of all its proper divisors (all its divisors except itself). For example, $6$ is perfect because its proper divisors…

A "perfect" number is one that is equal to the sum of all its proper divisors (all its divisors except itself). For example, $6$ is perfect because its proper divisors are $1, 2$ and $3$, and $1 + 2 + 3 = 6$.

  1. a) Check whether the number $28$ is a perfect number.
  1. b) The next perfect number is greater than $400$ and less than $500$. Knowing that it is a multiple of $16$ and of $31$, use prime factorization to find it.
Solve
Practice★★★Not started
In cybersecurity, very large prime numbers are used to create keys. Suppose a security key is generated by multiplying two distinct prime numbers, $p$ and $q$. The…

In cybersecurity, very large prime numbers are used to create keys. Suppose a security key is generated by multiplying two distinct prime numbers, $p$ and $q$. The result is $N = p \times q$.

If we know that $N = 1591$ and that one of the prime numbers is close to the square root of $N$:

  1. a) Find the values of $p$ and $q$.
  2. b) How many total factors does the number $N$ have? Justify your answer without listing them.
Solve

Back to the beginning: the $13$ students can only form one row because $13$ is prime (its only divisors are $1$ and $13$). The number $12$ is composite and has $6$ divisors ($1, 2, 3, 4, 6, 12$), which is why it allows many formations.

Summary

See all the exercises in this section