Activities for this section:

Prime Time

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.

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.

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.

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.

Using our definition, is a prime number?
Yes. No.

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!

Which of the following numbers are prime? Select all that apply.

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.

Suppose is a factor of a number . Is also a factor of that number?

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 is a factor of a number , is also a factor of ?
Yes No

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 .

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.

Unique factorization

Now that we have practiced finding a prime factorization, does it matter how we begin the process of factoring?

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.

This theorem is also called the Unique Factorization Theorem because it is telling us that prime factorizations are unique. If we write the prime factorization of and then rearrange the prime factors so that they are in order from smallest to largest, we are always going to get \[ 132 = 2 \times 2 \times 3 \times 11. \] This is the only way to factor into primes.

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.

Is a factor of ?

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