Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Prime numbers

Lesson 2.2 · 25 min read · Updated

You have 1212 square tiles and want to lay them as a full rectangle with none left over. You can make 11 row of 1212, 22 rows of 66 or 33 rows of 44. But what if you had only 1313 tiles? However hard you try, there is only one way: one long row of 1313.

Why is 1212 so easy to arrange and 1313 so stubborn? The answer lies in their factors. Numbers like 1313 are called prime numbers. They are like basic building blocks: every natural number greater than 11 can be built from them by multiplication.

Prime numbers and composite numbers

Let us list the factors of the first few numbers and count how many each one has.

Number 22 33 44 55 66 77 88 99 10 11 12 13
Number of factors 2 2 3 2 4 2 4 3 4 2 6 2

Some numbers have exactly two factors, 1 and the number itself: 2, 3, 5, 7, 11, 13. The others have more than two. That is why 13 tiles fit only one way: 13 is divisible only by 1 and 13.

The prime numbers below 30 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29. Notice that 2 is the only even prime. Every other even number is divisible by 2, so it has at least three factors: 1, 2 and itself.

Checking whether a number is prime

To show that n is composite, we only need to find one factor of n other than 1 and n. We try dividing n by the primes 2, 3, 5, 7, 11, … in turn. We can stop once the quotient is smaller than the divisor. Why? If n=a\cdot b with a\le b, then the smaller number a has already been tried. Once the divisor is bigger than the quotient, every pair (a;b) has been checked.

Writing a number as a product of prime factors

A composite number can always be written as a product of smaller numbers. If a composite number is still left in the product, we split it again. We carry on until every factor is prime.

There are two common layouts.

Method 1: a factor tree. Split the number into any two factors, then keep splitting the branches that are still composite.

606102325
Factor tree for 60

The numbers at the ends of the branches are all prime, so 60=2\cdot3\cdot2\cdot5=2^2\cdot3\cdot5.

Method 2: repeated division. Divide again and again by primes from smallest to largest. Write the quotients on the left and the divisors on the right, until the quotient is 1.

\begin{array}{r|l} 60 & 2 \\ 30 & 2 \\ 15 & 3 \\ 5 & 5 \\ 1 & \end{array}

Both methods give the same result 60=2^2\cdot3\cdot5, just as the theorem says.

Examples

We start by sorting numbers into primes and composites.

The number 91 is a well-known trap: it is not divisible by 2, 3 or 5, so it looks prime. The next example shows how patiently we need to test.

Now we factorise a larger number by repeated division.

The prime factorisation is not only a neat way to write a number. It shows us every factor at once.

Finally, a real situation: packing items equally into boxes.

Key terms

Summary

  • A prime number has exactly two factors, 1 and itself; a composite number has more than two.
  • 0 and 1 are neither prime nor composite; 2 is the only even prime.
  • To test n, divide by 2, 3, 5, 7, … until the quotient is smaller than the divisor.
  • Every number greater than 1 has a prime factorisation, and it is unique.
  • From the prime factorisation you can find every factor of a number.

Back to the 13 tiles: because 13 is prime, there is only one way to lay them. Next time you meet a number, ask yourself: which primes is it built from?

Practice

Each exercise comes with what you need and how to start. Try it yourself first, then open the solution.

Exercise 1

Which of the numbers 2; 15; 23; 27; 31; 49 are prime?

What you need and how to start

What you need: a prime has only two factors, 1 and itself.

Steps:

  1. Use the tests for 3 and 5 to rule numbers out quickly.
  2. For the rest, try dividing by 7.
Show solution

We have 15=3\cdot5; 27=3\cdot9; 49=7\cdot7. So 15, 27 and 49 are composite.

The numbers 2, 23 and 31 have only two factors, 1 and themselves.

So the primes are 2; 23; 31.

Answer. 2; 23; 31.

Exercise 2

Is 143 prime or composite? Explain.

What you need and how to start

What you need: finding one factor other than 1 and 143 is enough to show it is composite.

Steps:

  1. Try dividing by 2, 3, 5, 7.
  2. Then try 11.
Show solution

The number 143 is odd, its digit sum is 8 and its last digit is 3, so it is not divisible by 2, 3 or 5.

We have 143=7\cdot20+3, so 143 is not divisible by 7.

Trying 11, we get 143=11\cdot13.

So 143 is composite.

Answer. Composite, because 143=11\cdot13.

Exercise 3

Write each number as a product of prime factors:

a) 84;

b) 150;

c) 252.

What you need and how to start

What you need: divide again and again by primes from smallest to largest.

Steps:

  1. Divide by 2 until you can no longer, then move on to 3, 5, 7.
  2. Write equal factors as powers.
Show solution

a) We have 84=2\cdot42=2\cdot2\cdot21=2\cdot2\cdot3\cdot7. So 84=2^2\cdot3\cdot7.

b) We have 150=2\cdot75=2\cdot3\cdot25=2\cdot3\cdot5\cdot5. So 150=2\cdot3\cdot5^2.

c) We have 252=2\cdot126=2\cdot2\cdot63=2\cdot2\cdot3\cdot21=2\cdot2\cdot3\cdot3\cdot7. So 252=2^2\cdot3^2\cdot7.

Answer. a) 2^2\cdot3\cdot7; b) 2\cdot3\cdot5^2; c) 2^2\cdot3^2\cdot7.

Exercise 4

An writes 90=9\cdot10 and says "90=9\cdot10 is the prime factorisation of 90". Is An right? Write it correctly.

What you need and how to start

What you need: every factor in a prime factorisation must be prime.

Steps:

  1. Check whether 9 and 10 are prime.
  2. Split the composite numbers further.
Show solution

We have 9=3\cdot3 and 10=2\cdot5, which are both composite, so An is wrong.

Splitting further, we get 90=3\cdot3\cdot2\cdot5.

So the correct form is 90=2\cdot3^2\cdot5.

Answer. An is wrong; 90=2\cdot3^2\cdot5.

Exercise 5

Given 100=2^2\cdot5^2, list all the factors of 100.

What you need and how to start

What you need: each factor is a power of 2 times a power of 5.

Steps:

  1. The power of 2 can be 1, 2 or 4; the power of 5 can be 1, 5 or 25.
  2. Make a 3\times3 multiplication table.
Show solution

Each factor of 100 is (one of 1, 2, 4) times (one of 1, 5, 25).

Multiplying in turn, we get the factors 1; 5; 25; 2; 10; 50; 4; 20; 100.

So 100 has 9 factors: 1; 2; 4; 5; 10; 20; 25; 50; 100.

Answer. 1; 2; 4; 5; 10; 20; 25; 50; 100.

Exercise 6

Class 6A has 35 pupils. The teacher wants to split the class into groups of equal size, with more than 1 pupil per group and more than 1 group. In which ways can she do it?

What you need and how to start

What you need: the number of pupils in each group is a factor of 35.

Steps:

  1. Write 35 as a product of primes, then list its factors.
  2. Leave out the factors that do not fit the conditions.
Show solution

The number of pupils per group must be a factor of 35, other than 1 and 35.

We have 35=5\cdot7, so the factors of 35 are 1; 5; 7; 35.

Leaving out 1 and 35, we are left with 5 and 7.

So there are two ways: 7 groups of 5 pupils, or 5 groups of 7 pupils.

Answer. 7 groups of 5 or 5 groups of 7.

Exercise 7

Find the digit a such that the number \overline{2a} is prime.

What you need and how to start

What you need: \overline{2a} is a two-digit number with tens digit 2.

Steps:

  1. List the numbers from 20 to 29.
  2. Rule out even numbers and numbers divisible by 3 or 5.
Show solution

The numbers of the form \overline{2a} are 20; 21; …; 29.

Ruling out the even numbers leaves 21; 23; 25; 27; 29.

We have 21=3\cdot7, 25=5\cdot5 and 27=3\cdot9, which are composite.

The numbers 23 and 29 are prime.

So a=3 or a=9.

Answer. a\in\{3;9\}.

Exercise 8 Challenge

The sum of two prime numbers is 31. Find the two numbers.

What you need and how to start

What you need: the sum of two odd numbers is even; 2 is the only even prime.

Steps:

  1. Since 31 is odd, one of the two numbers must be even.
  2. Which prime is even? Find the other number and check it.
Show solution

If both numbers were odd, their sum would be even, but 31 is odd.

So one of the two numbers is even. The only even prime is 2.

Then the other number is 31-2=29, and 29 is prime.

So the two numbers are 2 and 29.

Answer. 2 and 29.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. Which of these numbers is prime?
Question 2. The prime factorisation of 72 is
Question 3. How many prime numbers are there below 20?
Question 4. Given n=2^2\cdot7, which number is not a factor of n?

Part II. True or false

Question 1. Decide whether each statement is true or false.
a) Every prime number is odd.
b) The number 57 is composite.
c) 2\cdot3\cdot5+1 is prime.
d) 120=2^3\cdot3\cdot5.

Part III. Short answer

Question 1. What is 2^3\cdot5?

Question 2. How many different prime factors does 210 have?

Show answers and explanations
  1. Part I, question 1: D. 47 has only two factors, 1 and 47. A: 1 has only one factor; B: 51=3\cdot17; C: 91=7\cdot13.
  2. Part I, question 2: A. 72=2\cdot2\cdot2\cdot3\cdot3=2^3\cdot3^2. B and D still contain composite numbers; C swaps the powers (2^2\cdot3^3=108).
  3. Part I, question 3: B. They are 2; 3; 5; 7; 11; 13; 17; 19. A forgets 2; C also counts 1.
  4. Part I, question 4: C. n=28 has the factors 1; 2; 4; 7; 14; 28. The number 8=2^3 needs three factors of 2, but n has only two.
  5. Part II, question 1: a) False; b) True; c) True; d) True. a) False: 2 is an even prime. b) True: 57=3\cdot19. c) True: 31 is prime. d) True: 2^3\cdot3\cdot5=8\cdot15=120.
  6. Part III, question 1: 40. 2^3\cdot5=8\cdot5=40.
  7. Part III, question 2: 4. 210=2\cdot3\cdot5\cdot7, which has 4 different prime factors.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email