Chapter 3 · Number system fluency
Prime Numbers and Prime Factorization
Sort numbers into prime and composite, find every factor pair of a number, and break a number down into a product of primes.
Picture counters. You can set them out in equal rows in several ways: row of , rows of , or rows of . Turning a layout sideways, such as rows of , uses the same two numbers. Each layout matches a multiplication: , and .
Now picture counters. The only layout with equal rows is row of , or that same layout turned sideways.
The numbers being multiplied are called factors. A factor of a whole number is a whole number that divides it exactly, with no remainder. So is a factor of , because with nothing left over. But is not a factor of , because remainder .
Every number in this lesson is a whole number greater than . You will sort numbers by how many factors they have, find every pair of factors a number has, and then break a number down into its smallest building blocks.
Counting factors sorts the whole numbers greater than into two groups.
- A prime number is a whole number greater than that has exactly two factors: and itself. For example, is prime because its only factors are and .
- A composite number is a whole number greater than that has more than two factors. For example, is composite because its factors are , , , , and .
The number is a special case. Its only factor is , so it is neither prime nor composite.
| Number | Factors | How many factors | Prime or composite? |
|---|---|---|---|
neither | |||
, | prime | ||
, | prime | ||
, , | composite | ||
, | prime | ||
, , , | composite | ||
, | prime | ||
, , , | composite | ||
, , | composite | ||
, , , | composite | ||
, | prime | ||
, , , , , | composite |
Two rows of the table are worth a second look. The number is prime even though it is even, and is composite even though it is odd. What matters is how many factors a number has, not whether it is even or odd. In fact, is the only even prime, because every even number greater than has as a factor besides and itself.
For a larger number, you may not know the factors by heart. Instead, hunt for a factor other than and the number itself. Your divisibility rules are the quickest tools for the hunt. If you find even one such factor, the number has more than two factors, so it is composite.
Worked example
Prime or composite?
Is prime or composite?
Hunt for a factor other than 1 and 51. Start with 2. The number 51 is odd, so it is not divisible by 2. That means 2 is not a factor.
Try 3 next. Add the digits: 5 plus 1 is 6. Because 6 is divisible by 3, the number 51 is divisible by 3 too. Divide to find the number that pairs with 3.
Division undoes multiplication, so you can rewrite the division fact as a multiplication fact. It shows that 3 and 17 are both factors of 51.
List the factors you have found: 1, 3, 17 and 51. That is more than two factors, so 51 fits the definition of a composite number.
Answer
The number is composite, because it has the factors and as well as and .
With , the hunt ended quickly. But what if you test a number and find nothing? You need to know when it is safe to stop. Factor pairs tell you.
A factor pair of a number is two whole numbers that multiply to give that number. For example, and are a factor pair of , written . With the counters, that was the layout with rows of . Order does not matter, so is the same pair.
To find all the factor pairs of a number:
- Test , , and so on, in order.
- Each time the number you test is a factor, divide to find its partner, the other number in the pair. Write the pair down.
- Stop when the number you are testing, multiplied by itself, is greater than the number you started with.
Why is it safe to stop there? Take . If both numbers in a pair were or more, they would multiply to at least , which is more than . So every factor pair of contains a number that is or less, and you will already have tested all of those. The same reasoning works for any starting number.
Worked example
All the factor pairs of 36
Find all the factor pairs of .
Start with 1. It is a factor of every whole number, and its partner is the number itself.
Test 2. The number 36 is even, so 2 is a factor. Divide 36 by 2 to find its partner, 18.
Test 3. The digits 3 and 6 add to 9, which is divisible by 3, so 3 is a factor. Divide 36 by 3 to find its partner, 12.
Test 4 and 5. Dividing 36 by 4 gives 9 with no remainder, so 4 is a factor. But 36 does not end in 0 or 5, so 5 is not a factor.
Test 6. Dividing 36 by 6 gives 6 with no remainder, so 6 is a factor. Its partner is also 6, so this pair gives just one new factor.
Next would be 7, but 7 times 7 is 49, which is greater than 36. Two numbers that are both 7 or more multiply to at least 49, so no new pair can exist. Stop here.
Answer
The factor pairs of are , , , and . So the factors of are , , , , , , , and .
The same search tells you when a number is prime. Take . Like every number, it has the pair . Now keep testing.
- is not a factor, because is odd.
- is not a factor, because the digits add to , and is not divisible by .
- is not a factor, because remainder .
- is not a factor, because does not end in or .
- Next would be , but , which is greater than . Stop.
The only factor pair of is . So has exactly two factors, and it is prime. In general, a whole number greater than is prime exactly when its only factor pair is times the number itself.
A composite number can be broken down into primes. Take . One of its factor pairs is . The is prime, but the is composite, so you can swap the for its own factor pair, . Because equals , the swap does not change the total. It is still .
Now every number being multiplied is prime, so nothing can be split again. You have found the prime factorization of . The prime factorization of a number is that number written as a product of prime numbers only. A product is what you get when you multiply numbers together. A prime is written once for each time it is used, so appears twice in . The number never appears, because is not prime.
To find the prime factorization of any composite number, start with a factor pair that does not use . Then keep swapping each composite number for a factor pair of its own, again without using , until only primes are left. If you are not sure whether a number is prime, search for its factor pairs to find out.
Worked example
From a factor pair to primes
Write the prime factorization of .
Start with a factor pair of 36 that does not use 1. From the last example, 4 and 9 work.
Look at the 4. It is composite, because 2 times 2 is 4. Swap the 4 for 2 times 2. You are putting in something equal to 4, so the total is still 36.
Look at the 9. It is composite, because 3 times 3 is 9. Swap the 9 for 3 times 3. Again the total is still 36.
Check every number. 2 and 3 are both prime, so nothing can be split further. Multiply back to confirm: 2 times 2 is 4, 4 times 3 is 12, and 12 times 3 is 36.
Answer
The prime factorization of is .
| First factor pair | Keep splitting composite numbers | Primes from smallest to largest |
|---|---|---|
, then | ||
, then | ||
, then | ||
, then |
Key concept
Every whole number above 1 has one prime factorization
Every whole number greater than is either prime or a product of primes. However you split a composite number, you always finish with the same primes, each used the same number of times. Only the order can differ, and multiplying in a different order does not change the value. That is why you can say the prime factorization of a number. It is usual to write the primes from smallest to largest. A prime number cannot be split, so its prime factorization is just the number itself.
Worked example
Smallest prime first
Write the prime factorization of . Any way of splitting works, but here is a steady routine: keep dividing by the smallest prime that is a factor, until the result is prime.
84 is even, so the smallest prime that is a factor is 2. Divide by 2. Because division undoes multiplication, the result tells you that 84 equals 2 times 42.
42 is even too, so divide by 2 again. This tells you that 42 equals 2 times 21, so 84 equals 2 times 2 times 21.
21 is odd, so 2 is not a factor. Try the next prime, 3. The digits 2 and 1 add to 3, so 21 is divisible by 3. This tells you that 21 equals 3 times 7.
7 is prime, because its only factors are 1 and 7. So stop dividing. Put the pieces together: in 2 times 2 times 21, swap the 21 for 3 times 7.
Multiply back to check: 2 times 2 is 4, 4 times 3 is 12, and 12 times 7 is 84.
Answer
The prime factorization of is .
Here is the idea to take with you. A whole number greater than is prime when it has exactly two factors, and composite when it has more. Testing numbers in order finds every factor pair of a number. And every composite number breaks down into primes, always the same primes, however you split it.
Next, you will use these skills to find the greatest common factor and the least common multiple of two numbers.