Activities for this section:
Prime numbers
Sometimes, when children start making lists of factors, they can start to notice things. Let’s make a couple of lists of factors and see that there are different types of things that can happen.
Remember that if is a factor of , we need to find some other number so that , and then both and are factors of . So, we’ll write these factors down in pairs that multiply to .
We got a total of factors of .
How do we know that we wrote down all of the factors of ? We did this in a systematic way by checking whether , , , and so on were factors of , and we continued until we had checked every number. We can see that is not a factor of , and then when we check we find that it’s already on our list of factors. We could check that is not a factor of , but we actually don’t need to do that if we notice that the numbers in the left column in our example are all smaller than the numbers in the right column. When we multiply and get , one of the numbers is smaller and the other is larger. Since is larger than the smallest number in the right hand column, if it was a factor of it would already have appeared paired with a smaller number from the left hand column. Another way to see this is to see that \[ 24 \div 7 \approx 3.43 \] which means that we have to multiply by a number that’s approximately in order to get . This number would be between and , and thus can’t show up in our list of whole numbers on the left. If we divided by , we could get an even smaller quotient, which again does not already appear on our list. So, we are confident that this is the entire list of factors, even though we only needed to divide by , , , , and .
Let’s do another example.
Remember that if is a factor of , we need to find some other number so that , and then both and are factors of . Let’s make our chart again in a systematic fashion.
We got a total of factors of .
Notice that in this example, we wrote the factor but we didn’t write anything across from it. The reason for this is that and we only want to write the factor once in our list. While had an even number of factors (every factor had a pair), has an odd number of factors. The difference is that with , we don’t have any whole number so that multiplied by itself gives . But we do have such a number for . A number where we can find some whole number so that multiplied by itself is equal to is called a square number. So, we have said that is a square number and is not. We’ve also noticed, as some children do if they are playing with factors, that square numbers have an odd number of factors while non-square numbers (like ) do not.
We could still find a number so that multiplied by itself is equal to , but this number would not be a whole number. In fact, we use special notation for this called the square root of , written . As an example, we have \[ \sqrt{25} = 5 \] because \[ 5 \times 5 = 25. \] We could also write \[ \sqrt{24} = 4.89897\dots \] because if we took the infinitely long decimal above and multiplied it by itself, we would get exactly . \[ 4.89897\dots \times 4.89897\dots = 24 \] There is one more thing to notice, here: the square root gives us the “turning point” in the table where we switch from the left-hand side of the table to the right-hand side. Notice that in our table for , the last row was and since . When we divide we get , and so the quotient is larger than the divisor. But if we divide we get 4.8, and where the quotient is smaller than the divisor. If we are dividing by numbers starting with and getting larger each time, the square root is the place where the quotient switches to be smaller than the divisor and we know that we are done making our chart.
Let’s look at one more example that will bring us to the main idea of this section.
Remember that if is a factor of , we need to find some other number so that , and then both and are factors of . Let’s make our chart once more in our systematic fashion. Remember that we only need to check numbers up to before we know we have found them all.
In this case, we found exactly two factors: and . Numbers that have exactly two factors are special enough that we will talk about them for the rest of this section.
Children begin learning about prime numbers in fourth grade alongside their work on factors and multiples. Let’s check out an application of our definition.
The number is a strange case, but our definition makes things clear. You might have seen the definition of prime numbers before written as numbers which have only and themselves as factors (not mentioning exactly two factors). Notice how this makes the case of more confusing, since has and itself as a factor!
Above, when we wrote all of the factors of , you probably divided by , , , , and and then stopped because larger divisors would be greater than the square root. This strategy is called trial division, because we tried to divide by all the numbers we know. This strategy is great when we are in the mindset of making a list of all of the factors of a number, because if the number is not prime we want to make sure that we write down all of the factors. However, if we are just trying to see whether or not a number is prime, we can take a short cut that depends on the relationships between factors. Let’s investigate this relationship with an example and then apply it to our example.
To make this more concrete, let’s use . In this case, \[ 4 \times \answer [given]{20} = 80 \] and so is a factor of . To find out whether or not is a factor of , we need to find some number so that and we want to use the fact that is a factor of to find this . In the language we used above, we are transforming our into this new . Remember that and let’s rewrite that in our equation. \begin{align*} 4 \times 20 &= 80 \quad \textrm{ or in general } \quad 4 \times B = N\\ (2 \times 2) \times 20 &= 80 \quad \textrm{ or in general } \quad (2 \times 2) \times B = N\\ \end{align*}
To find the from the , we can use the associative property to rearrange the parenthesis. \begin{align*} (2 \times 2) \times 20 &= 80 \quad \textrm{ or in general } \quad (2 \times 2) \times B = N\\ 2 \times (2 \times 20) &= 80 \quad \textrm{ or in general } \quad 2 \times (2 \times B) = N\\ \end{align*}
Now we can set or and see that in fact is a factor of .
We just showed that if is a factor of , then must also be a factor of . This works because is a factor of . We can use similar equations to show if is a factor of and is a factor of , then must also be a factor of . Try the next question to see another example.
If we apply this idea to our example of finding whether or not is prime, remember that we divided by , , , , and in order to determine that is prime. But we could have skipped dividing by since we already know that is not a factor of . Based on what we just learned, if is a factor of , then would also have to be a factor of , which we know isn’t true. Reversing this, we know that since isn’t a factor of , we cannot have as a factor of . We can now reduce the number of calculations we need in order to determine whether a number is prime.
The idea of using factors that we have already tested to determine whether a number is prime is also the main idea in one of the oldest algorithms for finding numbers, called the Sieve of Eratosthenes. Let’s use the sieve in the next example to find all of the prime numbers less than .
The first step is to list out all of the numbers, beginning with and ending with .
Throughout this discussion, we have been decomposing numbers into their prime factors. This process is so common that we call it finding a prime factorization for a number. Let’s work through an example where we find a prime factorization.
We need to find the factors of . Many people draw what is called a factor tree to help them keep track of the factors they are finding. A factor tree starts with the number we are factoring at the top, and then branches out into the factors below. We know that is an even number, and this means that must be a factor of this number. When we divide we get so we record this in our factor tree by drawing two branches below , one for and the other for .
Unique factorization
Now that we have practiced finding a prime factorization, does it matter how we begin the process of factoring?
This time, let’s start by factoring as . We will then need to factor both and , and we see that \[ 6 = \answer [given]{2} \times 3 \] and \[ 22 = 2 \times \answer [given]{11}. \] These are now all prime numbers, so let’s write them on the branches in our factor tree starting with at the top.
We have now factored in two different ways and we got the same prime factorization in each case. This is an example of the Fundamental Theorem of Arithmetic.
The Fundamental Theorem of Arithmetic is important because it allows us to think about prime numbers as the instructions or building blocks for any positive integer. Because prime factorizations are unique, we have a specific recipe for building each number, and we can use this recipe to answer questions about the number. It’s a common technique for mathematicians who are asking questions about numbers to rephrase their questions in terms of prime numbers. Let’s see an example.
As we work through more problems about factors and multiples, watch out for instances where making a prime factorization will help you answer questions about numbers.
2025-08-09 00:27:58