Skip to main content

Section 4.4 Primes

Primes are integers whose only divisors are one and itself. Many modern encryption systems that keep your data safe are based on the difficulty of factoring an integer that is the product of two very large primes. Any integer can be written as the product of primes, with repeats allowed. This prime factorization allows us to list and count the divisors of an integer more easily.

Subsection 4.4.A Primes and Composites

Activity 4.4.A Visualizing divisors.

We begin our discussion of primes with a visualization of divisors.
  1. Watch the at animation. (Or try this.)
  2. Draw the circle pictures from the animation for integers 1-12. You are welcome to draw dots instead of circles.
  3. Draw the circle pictures from the animation for the integers 81 and 100.
  4. What can you say about an integer whose representation is a circle?
  5. In words, explain how the visualization is determined from the number.
As we saw in the opening activity, some integers can be drawn as equal-sized groups of circles corresponding to the divisors of the integers. Some integers can only be drawn as one circle of circles because the only divisors of that integer are one and itself. Such integers are primes. Here is the formal definition.

Definition 4.4.2 Prime.

Β 
  1. A positive integer \(n>1\) is prime if its only positive divisors are one and \(n\text{.}\) For example, two, three, and five are prime. Note that one is not considered prime.
  2. A positive integer \(n>1\) is composite if it is not prime. For example, four is composite because its positive divisors are one, two, and four, not just one and four. Note that one is also not composite.
  3. The terms β€œprime” and β€œcomposite” are adjectives (used to describe an integer) and nouns (a type of integer).
  4. The integer \(d\) is a nontrivial positive divisor of \(n\) if \(d \mid n\) and \(1 \lt d \lt n\text{.}\) For example, 2 is a nontrivial positive divisor of 4. In general, an integer is composite if it has a nontrivial divisor, and an integer is prime if it does not have any nontrivial positive divisors.
Let’s practice working with these definitions.

Example 4.4.3 Show an integer is prime or composite.

Β 
  1. Show that the integer seven is prime.
    Solution.
    We can check that \(2 \nmid 7\) (for example, by calculating \(7 \div 2 = 3.5\) which is not an integer), \(3 \nmid 7\text{,}\) \(4 \nmid 7\text{,}\) \(5 \nmid 7\text{,}\) and \(6 \nmid 7\text{.}\) Therefore, the only positive divisors of seven are one and seven. Thus, seven is prime.
  2. Show that the integer 99 is composite.
    Solution.
    We could list all the divisors of 99, but that is not necessary. We just need one nontrivial positive divisor of 99. For example, \(99 = 9(11)\) and so \(9 \mid 99\text{.}\) That is, 9 is a nontrivial positive divisor of 99. Thus, 99 is composite.
The strategy we used in ExampleΒ 4.4.3 (a) does not generalize well to larger numbers. For example, if we wanted to show that 97 is prime, then that method would require us to check that 2, 3, 4, …, 96 are not divisors of 97. It is useful to note two facts that allow us to check a much shorter list of divisors.
We can use this theorem to show that 97 is prime.

Example 4.4.5 Sieve of Eratosthenes.

Use the Sieve of Eratosthenes to show that 97 is prime.
Solution.
We start with a grid showing the integers 1-100 in rows of 10 in TableΒ 4.4.6. We plan to cross out one and all composite integers and to circle all prime integers.
To begin we cross out one, circle two, and then cross out every other number thereafter, which are the even integers. Because an even integer has positive divisor two, the only prime even integer is two itself. Next, circle three and then cross out every third number thereafter, which are the multiples of three. Repeat the process for the next two integers that have not yet been crossed out, five and then seven. Since each integer in the top row is crossed out or circled/left untouched, circle all the remaining integers that have not been crossed out to get the grid shown in TableΒ 4.4.6. (Watch the Sieve of Eratosthenes in action.)
Table 4.4.6. Sieve of Eratosthenes
\(\cancel{1}\) \(\underline{2}\) \(\underline{3}\) \(\cancel{4}\) \(\underline{5}\) \(\cancel{6}\) \(\underline{7}\) \(\cancel{8}\) \(\cancel{9}\) \(\cancel{10}\)
\(\underline{11}\) \(\cancel{12}\) \(\underline{13}\) \(\cancel{14}\) \(\cancel{15}\) \(\cancel{16}\) \(\underline{17}\) \(\cancel{18}\) \(\underline{19}\) \(\cancel{20}\)
\(\cancel{21}\) \(\cancel{22}\) \(\underline{23}\) \(\cancel{24}\) \(\cancel{25}\) \(\cancel{26}\) \(\cancel{27}\) \(\cancel{28}\) \(\underline{29}\) \(\cancel{30}\)
\(\underline{31}\) \(\cancel{32}\) \(\cancel{33}\) \(\cancel{34}\) \(\cancel{35}\) \(\cancel{36}\) \(\underline{37}\) \(\cancel{38}\) \(\cancel{39}\) \(\cancel{40}\)
\(\underline{41}\) \(\cancel{42}\) \(\underline{43}\) \(\cancel{44}\) \(\cancel{45}\) \(\cancel{46}\) \(\underline{47}\) \(\cancel{48}\) \(\cancel{49}\) \(\cancel{50}\)
\(\cancel{51}\) \(\cancel{52}\) \(\underline{53}\) \(\cancel{54}\) \(\cancel{55}\) \(\cancel{56}\) \(\cancel{57}\) \(\cancel{58}\) \(\underline{59}\) \(\cancel{60}\)
\(\underline{61}\) \(\cancel{62}\) \(\cancel{63}\) \(\cancel{64}\) \(\cancel{65}\) \(\cancel{66}\) \(\underline{67}\) \(\cancel{68}\) \(\cancel{69}\) \(\cancel{70}\)
\(\underline{71}\) \(\cancel{72}\) \(\underline{73}\) \(\cancel{74}\) \(\cancel{75}\) \(\cancel{76}\) \(\cancel{77}\) \(\cancel{78}\) \(\underline{79}\) \(\cancel{80}\)
\(\cancel{81}\) \(\cancel{82}\) \(\underline{83}\) \(\cancel{84}\) \(\cancel{85}\) \(\cancel{86}\) \(\cancel{87}\) \(\cancel{88}\) \(\underline{89}\) \(\cancel{90}\)
\(\cancel{91}\) \(\cancel{92}\) \(\cancel{93}\) \(\cancel{94}\) \(\cancel{95}\) \(\cancel{96}\) \(\underline{97}\) \(\cancel{98}\) \(\cancel{99}\) \(\cancel{100}\)
Notice that nowhere in this process do we divide, we only skip-count.
 1 
Skip-counting is the process of counting by a number greater than 1.
How do we know that the circled integers
\begin{equation*} 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 67, 73, 79, 83, 89, 97 \end{equation*}
are prime? Each of these integers is not divisible by two, three, five, or seven since we crossed out all the multiples of two, three, five, or seven. By TheoremΒ 4.4.4 (a), each of these integers is not divisible by four, six, eight, or 10 because two was not a divisor and is not divisible by nine because three was not a divisor. That is, each of these integers are not divisible by \(2, 3, 4, 5, 6, 7, 8, 9\text{,}\) or \(10\text{.}\) By TheoremΒ 4.4.4 (b) and since \(\sqrt{100} = 10\text{,}\) each of these remaining integers must be prime.
In particular, 97 is prime.
Now, it is your turn to work with prime and composite integers.

Activity 4.4.B Primes and composites.

Β 
  1. Without using any computational technology, show that each of the following integers is composite:
    \begin{equation*} 320, 321, 322, 324, 325, 326, 327, 328, 330\text{.} \end{equation*}
  2. Using computational technology, check that \(17 \mid 323\) and \(7 \mid 329\text{.}\) What can you conclude about the integers 323 and 329?
  3. Using computational technology, check that \(331\) is not divisible by \(2, 3, 5, 7, 11, 13, 17\text{,}\) and that \(\sqrt{331} \lt 19\text{.}\) What can you conclude about the integer 331?
  4. In the mid-17th century Marin Mersenne conjectured that If \(p\) is prime, then \(2^p-1\) is prime. Prove that he was mistaken by finding a prime \(p\) where \(2^p-1\) is a composite.

Subsection 4.4.B Prime Factorization

Another reason why primes are important is that they are the multiplicative building blocks of all integers in the sense that every natural number \(n > 1\) can be written as the product of prime numbers. To see why, let’s see what happens if we factor an integer as much as possible.

Example 4.4.8 Factoring 120.

Factor 120 as much as possible.
Solution.
An easy factorization is \(120 = 12 \cdot 10\text{.}\) Since both 12 and 10 are composite, they can be factored nontrivially. For example, \(12 = 2 \cdot 6\) and \(10 = 2 \cdot 5\text{.}\) Now, two and five are prime so they cannot be further factored, but six is composite and \(6 = 2 \cdot 3\text{.}\) Since two and three are prime, no further factorization is possible. This factorization is shown in the factor tree in FigureΒ 4.4.9, and we have circled the prime factors. Putting our work together, we can write
\begin{equation*} 120 = 2 \cdot 2 \cdot 3 \cdot 2 \cdot 5 = 2^3 \cdot 3 \cdot 5\text{.} \end{equation*}
Figure 4.4.9. A factor tree for the integer \(120=2^3 \cdot 3 \cdot 5\text{.}\)
In ExampleΒ 4.4.8, we wrote
\begin{equation*} 120 = 2 \cdot 2 \cdot 3 \cdot 2 \cdot 5 = 2^3 \cdot 3 \cdot 5\text{.} \end{equation*}
Note that this product is a product of primes.

Definition 4.4.10 Prime factorization.

Β 
  1. A prime factorization of a positive integer \(n>1\) is a product of primes equal to \(n\text{.}\) For example, a prime factorization of 120 is
    \begin{equation*} 120 = 2 \cdot 2 \cdot 3 \cdot 2 \cdot 5\text{.} \end{equation*}
    Note that a prime is its own prime factorization. For example, a prime factorization of \(5\) is \(5\text{.}\)
  2. We often group repeat primes together and write primes in increasing order to write a prime factorization of \(n\) in standard order as
    \begin{equation*} n = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k} \end{equation*}
    where \(p_1, p_2, \ldots, p_k\) are distinct primes with \(p_1 \lt p_2 \lt \ldots \lt p_k\) and \(e_1, e_2, \ldots, e_k\) are positive integer exponents. For example, a prime factorization of 120 in standard order is
    \begin{equation*} 120 = 2^3 \cdot 3 \cdot 5\text{.} \end{equation*}
  3. The integer 1 does not have a prime factorization, but occasionally we refer to 1 as the prime factorization of 1 because it fits the format with all exponents (\(e_1, e_2, \ldots e_k\)) set equal to 0.
Any integer \(n>1\) has a prime factorization. To see why, repeat the process from ExampleΒ 4.4.8. If \(n\) is prime, then we are done. Otherwise, \(n\) is composite and we can nontrivially factor \(n\text{.}\) Any time we have a composite factor, we nontrivially factor it. When we run out of composites, all the remaining numbers must be prime. Then we arrange the primes in standard order, from smallest prime to largest, using exponential notation to record any multiple occurrences of primes.
It might be surprising to learn that the prime factorization of an integer in standard form is unique. For example, in ExampleΒ 4.4.8 if we had started with \(120 = 2 \cdot 60\) or \(120 = 3 \cdot 40\) or \(120 = 4 \cdot 30\) or any other factorization, we would get different factor trees but the same final prime factorization of 120 in standard form which is \(120 = 2^3 \cdot 3 \cdot 5\text{.}\) We state this existence and uniqueness as a theorem.
For example, a consequence of TheoremΒ 4.4.11 is that if the prime factorization of an integer \(n\) does not include the prime \(p\text{,}\) then \(p \nmid n\text{.}\)
Try working with prime factorizations.

Activity 4.4.C Prime factorization.

Β  Do not use computational technology or other resources on this problem.
  1. Use a factor tree to find the prime factorization of 120 starting with \(2 \cdot 60\text{.}\)
  2. Use a factor tree to find the prime factorization of 72.
  3. Find the prime factorization of \(10^4\text{.}\) Hint: \(10^4\) is already partially factored. Continue to factor it further.
  4. Find the prime factorization of \(12^5\text{.}\)
  5. Find the prime factorization of 10! Hint: 10! is already partially factored. Continue to factor it further.
  6. Find the power of 7 in the prime factorization of 15!
  7. Find the highest power of 10 dividing 15! and explain how that information tells us how many zeros are at the end of 15! when 15! is multiplied exactly.
Let’s look at examples similar to ActivityΒ 4.4.C.

Example 4.4.13 Prime factorization.

Β  Do not use computational technology or other resources on this problem.
  1. Find the prime factorization of \(75^5\text{.}\)
    Solution.
    Note that \(75^5\) is already partially factored. We can continue to factor it further using \(75 = 3\cdot5^2\text{.}\) We get
    \begin{equation*} 75^5=(3\cdot5^2)^5 =3^5 \cdot \left(5^2\right)^5 = 3^5\cdot 5^{10}\text{.} \end{equation*}
    Note that we used TheoremΒ 2.4.21 to simplify \(\left(5^2\right)^5=5^{10}\text{.}\)
  2. Find the prime factorization of 12!
    Solution.
    Note that \(12!\) is already partially factored. We can continue to factor it further using
    \begin{equation*} 12! = (12)(11)(10)(9)(8)(7)(6)(5)(4)(3)(2)(1)\text{.} \end{equation*}
    We get
    \begin{align*} 12! \amp = (12)(11)(10)(9)(8)(7)(6)(5)(4)(3)(2)(1)\\ \amp = (2^2 \cdot 3)(11)(2 \cdot 5)(3^2)(2^3)(7)(2\cdot 3)(5)(2^2)(3)(2)\\ \amp = 2^{10}\cdot 3^5 \cdot 5^2 \cdot 7 \cdot 11\text{.} \end{align*}
  3. Find the highest power of 10 dividing 12! and explain how that information tells us how many zeros are at the end of 12! when 12! is multiplied exactly.
    Solution.
    The highest power of 5 that divides 12! is \(5^2\text{.}\) To get a divisor of 10, we must have a \(2 \cdot 5\text{.}\) Therefore, the highest power of 10 that divides 12! is \(10^2\text{.}\) Each power of 10 contributes one zero at the end of the number. Since there are two 10s, it follows that there are two zeros at the end of 12! when 12! is multiplied exactly. (By the way, we can use computational technology to check that 12! = 479,001,600 , which indeed ends with two zeros.)

Subsection 4.4.C Detour: Listing and Counting Divisors

In the Lockers Puzzle ActivityΒ 4.1.A, as solved in ExampleΒ 4.1.3, we saw that whether a locker was open or closed depended on the number of divisors of the locker number, but it is not easy to list or count the divisors of an integer. In this section, we explore how prime factorization can help.
We start with an example, looking at how the prime factorization of an integer tells us information about the prime factorization of its divisors.

Example 4.4.14 Prime factorization of divisors.

Β 
  1. List the positive divisors of the integer 16. Compare the prime factorization of 16 with the prime factorization of its positive divisors.
    Solution.
    The positive divisors of \(16=2^4\) are \(1, 2, 4, 8\) and \(16\text{.}\) The prime factorizations of these divisors are \(1, 2^1, 2^2, 2^3\text{,}\) and \(2^4\text{.}\) We can display this list in a table. TableΒ 4.4.15 lists the divisors in prime factored form and then the divisors themselves.
    Table 4.4.15. The positive divisors of 16
    \(2^0\) \(2^1\) \(2^2\) \(2^3\) \(2^4\)
    1 \(2^0\) \(2^1\) \(2^2\) \(2^3\) \(2^4\)
    \(2^0\) \(2^1\) \(2^2\) \(2^3\) \(2^4\)
    1 1 2 4 8 16
  2. List the positive divisors of the integer 50. Compare the prime factorization of 50 with the prime factorization of its positive divisors.
    Solution.
    The positive divisors of \(50=2\cdot 5^2\) are \(1, 2, 5, 10, 25\) and \(50\text{.}\) The prime factorizations of these divisors are \(1, 2^1, 5^1, 2 \cdot 5, 5^2\) and \(2\cdot 5^2\text{.}\) TableΒ 4.4.16 lists the divisors in prime factored form and then the divisors themselves. Notice that going across a row of this table, we multiply by two and going down a column of this table, we multiply by five.
    Table 4.4.16. The positive divisors of 50
    \(2^0\) \(2^1\)
    \(5^0\) 1 2
    \(5^1\) 5 \(2\cdot 5\)
    \(5^2\) \(5^2\) \(2\cdot 5^2\)
    \(2^0\) \(2^1\)
    1 \(5^0\) 2
    \(5^1\) 5 10
    \(5^2\) 25 50
  3. List the positive divisors of the integer 72. Compare the prime factorization of 72 with the prime factorization of its positive divisors.
    Solution.
    The positive divisors of \(72=2^2 \cdot 3^2\) are \(1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36\) and \(72\text{.}\) The prime factorizations of these divisors are \(1, 2^1, 3^1, 2^2, 2 \cdot 3, 2^3, 3^2, 2^2 \cdot 3, 2 \cdot 3^2, 2^3 \cdot 3, 2^2 \cdot 3^2\text{,}\) and \(2^2 \cdot 3^2\text{.}\) TableΒ 4.4.17 lists the divisors in prime factored form and then the divisors themselves. Notice that going across a row of this table, we multiply by two and going down a column of this table, we multiply by three.
    Table 4.4.17. The positive divisors of 72
    \(2^0\) \(2^1\) \(2^2\) \(2^3\)
    \(3^0\) 1 2 \(2^2\) \(2^3\)
    \(3^1\) \(3\) \(2\cdot 3\) \(2^2\cdot 3\) \(2^3\cdot 3\)
    \(3^2\) \(3^2\) \(2 \cdot 3^2\) \(2^2 \cdot 3^2\) \(2^3 \cdot 3^2\)
    1 2 \(4\) \(8\)
    \(1\) \(1\) \(2\) \(4\) \(8\)
    3 \(3\) \(6\) \(12\) \(24\)
    \(9\) \(9\) \(18\) \(36\) \(72\)
Try listing and counting divisors using prime factorization.

Activity 4.4.D Listing and counting divisors using prime factorization.

Β 
  1. What are the possible prime factorizations of a divisor of \(64 = 2^6\text{?}\) List the positive divisors of the integer 64 in a table as in ExampleΒ 4.4.14 (a). How many positive divisors does the integer 64 have?
  2. What are the possible prime factorizations of a divisor of \(2,000 = 2^4 5^3\text{?}\) List the positive divisors of the integer 2,000 in a table as in ExampleΒ 4.4.14 (c). You may leave the divisors in prime-factored form. How many positive divisors does the integer 2,000 have?
  3. List the positive divisors of \(p^2\) where \(p\) is a prime. How many positive divisors does the integer \(p^2\) have?
  4. List the positive divisors of \(p^3\) where \(p\) is a prime. How many positive divisors does the integer \(p^3\) have?
  5. For a prime \(p\) and positive integer \(a\text{,}\) how many positive divisors does \(p^a\) have? Check that your conjecture gives the same number of positive divisors of the integer 64 as found in (a).
  6. Give an example of an integer with exactly 21 positive divisors. Hint: Use a power of a prime.
  7. For distinct primes \(p\) and \(q\text{,}\) list the positive divisors of an integer \(p^4\cdot q^3\) in a table as in (b). How many positive divisors does \(p^4\cdot q^3\) have?
  8. For distinct primes \(p\) and \(q\text{,}\) conjecture the number of positive divisors of \(p^a\cdot q^b\text{.}\)
  9. Give an example of an integer with exactly 21 positive divisors, where that integer is not a power of a prime. Hint: What could the prime factorization be?
Our examples have involved integers whose prime factorization has one or two distinct primes. Here is an example of an integer whose prime factorization has three distinct primes.

Example 4.4.19 Prime factorization of divisors of the integer 600.

Β  List the positive divisors of the integer 600 using its prime factorization.
Solution.
The prime factorization of the integer 600 is
\begin{equation*} 600=2^3 \cdot 3 \cdot 5^2\text{.} \end{equation*}
Since there are three prime divisors, we would need a 3-dimensional table which we can represent using three 2-dimensional tables based on the power of 5 in the divisor, as shown in TableΒ 4.4.20. The list of divisors of 600 is, therefore
\begin{equation*} \begin{aligned} 1, &2, 4, 8, 3, 6, 12, 24, 5, 10, 20, 40, 15, 30, 60, \\ &120, 25, 50, 100, 200, 75, 150, 300, 600 \end{aligned}\text{.} \end{equation*}
Table 4.4.20. The prime factorization of the positive divisors of 600
\(1\) \(1\) \(2\) \(2^2\) \(2^3\)
\(1\) \(1\) \(2\) \(2^2\) \(2^3\)
\(3\) \(3\) \(2 \cdot 3\) \(2^2\cdot 3\) \(2^3\cdot 3\)
\(5\) \(1\) \(2\) \(2^2\) \(2^3\)
\(1\) 5 \(2\cdot 5\) \(2^2\cdot 5\) \(2^3\cdot 5\)
\(3\) \(3 \cdot 5\) \(2 \cdot 3 \cdot 5\) \(2^2\cdot 3 \cdot 5\) \(2^3\cdot 3 \cdot 5\)
\(5^2\) \(1\) \(2\) \(2^2\) \(2^3\)
\(1\) \(5^2\) \(2 \cdot 5^2\) \(2^2\cdot 5^2\) \(2^3\cdot 5^2\)
\(3\) \(3\cdot 5^2\) \(2 \cdot 3\cdot 5^2\) \(2^2\cdot 3\cdot 5^2\) \(2^3\cdot 3\cdot 5^2\)
Notice that we can count the number of positive divisors of an integer from its prime factorization.

Example 4.4.21 Counting divisors from the prime factorization.

In each part of this exercise, show how to count the number of divisors from the prime factorization.
  1. How many positive divisors does the integer 16 have? Explain.
    Solution.
    In ExampleΒ 4.4.14 (a), we see that the positive divisors of \(16 = 2^4\) have a prime factorization of the form \(2^a\) where \(a=0,1,2,3,4\text{.}\) There are five choices for \(a\text{.}\) Thus, the integer 16 has five positive divisors.
  2. How many positive divisors does the integer 50 have? Explain.
    Solution.
    In ExampleΒ 4.4.14 (b), we see that the positive divisors \(50 = 2 \cdot 5^2\) have a prime factorization of the form \(2^a\cdot 5^b\) where \(a=0,1\) and \(b = 0,1,2\text{.}\) There are two choices for \(a\) and three choices for \(b\text{.}\) Since steps multiply TheoremΒ 2.2.3, the integer 50 has \(2 \times 3 = 6\) positive divisors.
  3. How many positive divisors does the integer 72 have? Explain.
    Solution.
    In ExampleΒ 4.4.14 (c), we see that the positive divisors of \(72 = 2^3 \cdot 3^2\) have a prime factorization of the form \(2^a\cdot 3^b\) where \(a=0,1,2,3\) and \(b = 0,1,2\text{.}\) There are four choices for \(a\) and three choices for \(b\text{.}\) Since steps multiply TheoremΒ 2.2.3, the integer 72 has \(4 \times 3 = 12\) positive divisors.
  4. How many positive divisors does the integer 600 have? Explain.
    Solution.
    In ExampleΒ 4.4.19, we see that the positive divisors of \(600 = 2^3 \cdot 3 \cdot 5^2\) have a prime factorization of the form \(2^a \cdot 3^b \cdot 5^c\) where \(a=0,1,2,3\text{,}\) \(b=0,1\text{,}\) and \(c=0,1,2\text{.}\) There are four choices for \(a\text{,}\) two choices for \(b\text{,}\) and three choices for \(c\text{.}\) Since steps multiply TheoremΒ 2.2.3, the integer 600 has \(4 \times 2 \times 3 = 24\) positive divisors.
We state our findings in a theorem.
We can use TheoremΒ 4.4.22 to find examples of integers with a certain number of divisors.

Example 4.4.23 Integers with exactly 10 positive divisors.

Β 
  1. Describe the possible prime factorizations of an integer \(n\) that has exactly 10 positive divisors.
    Solution.
    By TheoremΒ 4.4.22, we are looking for an integer with prime factorization
    \begin{equation*} n = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k} \end{equation*}
    such that
    \begin{equation*} (e_1+1)(e_2+1) \cdots (e_k+1)=10\text{.} \end{equation*}
    One possibility is that there is only one prime \(p\) with \(e+1=10\) and so \(e=9\text{.}\) In that case, the prime factorization is \(n = p^9\text{.}\) The corresponding table would be \(1 \times 10\text{.}\) The other possibility is that there are two primes, \(p\) and \(q\) where \(e_1+1=5\) and \(e_2+1=2\) and so \(e_1=4\) and \(e_2=1\text{.}\) In that case, the prime factorization is \(n=p^4q\text{.}\) The corresponding table would be \(2 \times 5\text{.}\)
  2. What is the smallest integer having exactly 10 positive divisors?
    Solution.
    The smallest integer of the form \(p^9\) is \(2^9=512\text{.}\) The smallest integer of the form \(p^4q\) is \(2^4\cdot 3 = 48\text{.}\) Thus, the smallest integer having exactly 10 divisors is 48.

Subsection 4.4.D Exercises

Subsubsection Exercises for 4.4.A Primes and Composites

1. Practice.

Β  If \(p\) is prime and \(p+2\) is also prime, then \(p\) and \(p+2\) are twin primes. Watch the animation again and record ten pairs of twin primes. For example, 3 and 5 form one pair of twin primes.
Check.
Hint: The list begins with \(\{3,5\}, \{5,7\},\{11,13\},\{17,19\}, \ldots\text{.}\)

2. Practice.

Β  Consider the integers
\begin{equation*} 101, 102, 103, 104, 105, 106, 107, 108, 109, 110\text{.} \end{equation*}
Answer the following questions without using computational technology. Briefly justify your answers.
  1. Which of these integers are a multiple of two (even)?
  2. Which of these integers are a multiple of three? Hint: Some multiples of three are \(90, 93, 96\text{,}\) and \(99\text{.}\)
  3. Which of these integers are a multiple of five?
  4. Which of these integers are a multiple of seven? Hint: Some multiples of seven are \(70, 77, 84, 91\text{,}\) and \(98\text{.}\)
  5. Which of these integers are prime? Note that \(\sqrt{121} = 11\text{,}\) so each of these integers has a square root less than 11.
Check.
  1. Hint: Evens.
  2. Hint: \(99+3=1-2\) is a multiple of three. Then count by three.
  3. Hint: Ends in zero or five.
  4. Hint: \(98+7=105\) is a multiple of seven. The next multiple of seven is \(105+7=112\text{.}\)
  5. Hint: There are four integers remaining.

4. Understand.

Β  In ExampleΒ 4.4.5, we found all primes less than 100. The only prime divisors we used to cross out numbers were two, three, five, and seven.
  1. Why did we stop there (versus checking 11, 13, etc.)? Hint: Cite a relevant theorem.
  2. Notice that the primes we checked were in the top row (1-10). We used 1-10 for a specific reason. What is that reason?
  3. If we wanted to use a Sieve of Eratosthenes to find all primes up to 225, how many integers should we have in the top row?
  4. Which prime divisors would we use to cross out numbers if we were building a Sieve up to 225?
Check.
  1. Hint: \(\sqrt{100}=10\text{.}\)
  2. Hint: \(10^2=100\text{.}\)
  3. Hint: Less than 15.

5. Understand.

Β  As we saw in ActivityΒ 4.4.B(d), Mersenne conjectured that integers of the form \(2^p-1\) are prime whenever \(p\) is prime. Primes of this form are Mersenne primes.
  1. Without using computational technology, check that \(2^2-1, 2^3-1, 2^5-1\text{,}\) and \(2^7-1\) are prime. Note that \(2^7=128\text{.}\) (If you do not know this power yet, work on learning the powers of two.)
  2. Note that \(2^6-1 = 63=7 \cdot 9\) is composite. Explain why this example does not contradict Mersenne’s conjecture.
  3. Prove that Mersenne was mistaken by finding a prime \(p\) where \(2^p-1\) is a composite. Yes, this question repeats ActivityΒ 4.4.B (d).
  4. Use the Internet to find the largest known Mersenne prime today. Cite your source (webpage).
Check.
  1. Hint: three, seven, and 21 are prime (see ExampleΒ 4.4.5). For 127 check if it is a multiple of two, three, five, seven, and 11.
  2. 6 is not prime.
  3. Hint: Evaluate \(2^{11}-1\text{,}\) \(2^{13}-1\text{,}\) \(2^{17}-1\text{,}\) … and stop when you find a composite.
  4. Hint: As of September 2025, the most recently found example was from October 2024.

6. Understand.

Β 
  1. Explain why if \(1 \le k \le n\text{,}\) then \(k \mid n!\text{.}\) Hint: Write \(n!\) in more detail than usual as
    \begin{equation*} n! = n(n-1)(n-2) \cdots (k+1)(k)(k-1) \cdots (3)(2)(1)\text{.} \end{equation*}
  2. Explain why it follows that the integer \(n! + k\) is composite for \(k=2,3 \ldots n\text{.}\)
  3. Explain how it follows that for any integer \(n\ge2\text{,}\) there are at least \(n-1\) consecutive composite integers.

8. Explore.

Go to this website. Explain how the monsters for 6, 8, and 9 are built from the prime monsters. Be specific.
 2 
These illustrations are from the children’s book You Can Count on Monsters: The First 100 Numbers and Their Characters by Richard Schwartz who is a mathematics professor at Brown University. Dr.Β Schwartz is also the author of the visualizing divisors animation from ActivityΒ 4.4.A.

9. Explore.

Look at the online divisor plot. To get it to restart, click on \(\str{Introductory}\text{.}\) You can control the scroll speed at the bottom of the page, including stopping the scroll, by deselecting the scroll option.
  1. What is the animation showing?
  2. How can you see if a number is prime?
  3. How can you see if a number is a perfect square?

10. Explore.

Consider the graph \(G\) whose vertices are \(\{1,2,3,\ldots,100\}\) where there is an edge between distinct vertices \(b\) and \(c\) if \(b \mid c\) or \(c \mid b\text{.}\)
  1. Evaluate the degree of vertices one, five, and 12. Justify your answers.
  2. Evaluate the degree of vertices 41 and 53. Note that 41 and 53 are prime.Justify your answers.
  3. Recall that a leaf is a vertex of degree one. How many leaves does \(G\) have? You may want to look at ExampleΒ 4.4.5. Again, justify your answer.
Check.
Note that edges connect two distinct integers. For example, even though \(1 \mid 1\text{,}\) there is no edge between one and itself.
  1. Hint: \(\fn{deg}(1)=99\text{.}\) For 5 and 12, count divisors and multiples.
  2. Hint: 41 and 53 have different degrees.
  3. Hint: If \(b>50\text{,}\) then \(2b >100\text{.}\)

11. Explore.

Β  Explain why for any composite \(n\text{,}\) we can find integers \(a\) and \(b\) such that \(a \fn{ mod } n \neq 0\) and \(b \fn{ mod } n \neq 0\text{,}\) but \(ab \fn{ mod } n = 0\text{.}\) Note that such integers \(a\) and \(b\) are zero divisors in \(\mathbb{Z}_n\text{,}\) as defined in Exercise 17 in SectionΒ 4.3.

12. Explore.

In this exercise, we explore \(a^n \fn{ mod } n\text{.}\) You are welcome to use online computational technologyto evaluate powers and \(\fn{mod}\text{.}\)
  1. Calculate \(0^3 \fn{ mod } 3\text{,}\) \(1^3 \fn{ mod } 3\text{,}\) and \(2^3 \fn{ mod } 3\text{.}\)
  2. Calculate \(0^4 \fn{ mod } 4\text{,}\) \(1^4 \fn{ mod } 4\text{,}\) \(2^4 \fn{ mod } 4\text{,}\)and \(3^4 \fn{ mod } 4\text{.}\)
  3. Calculate \(0^5 \fn{ mod } 5\text{,}\) \(1^5 \fn{ mod } 5\text{,}\) \(2^5 \fn{ mod } 5\text{,}\) \(3^5 \fn{ mod } 5\text{,}\) and \(4^5 \fn{ mod } 5\text{.}\)
  4. Calculate \(0^6 \fn{ mod } 6\text{,}\) \(1^6 \fn{ mod } 6\text{,}\) \(2^6 \fn{ mod } 6\text{,}\) \(3^6 \fn{ mod } 6\text{,}\) \(4^6 \fn{ mod } 6\text{,}\) and \(5^6 \fn{ mod } 6\text{.}\)
  5. What can you say about \(a^n \fn{ mod } n\) when \(n\) is prime? Does the same hold when \(n\) is not prime?

Subsubsection Exercises for 4.4.B Prime Factorization

13. Practice.

Use a factor tree to find the prime factorization of each integer. You may use the list of primes from ExampleΒ 4.4.5 as needed.
Check.
Do not forget to draw the tree.
  1. \(\displaystyle 2^5\)
  2. Hint: The prime factorization includes only two primes: two and five.
  3. Hint: The prime factorization includes exactly three primes.

14. Understand.

Β 
  1. Without using computational technology, find the prime factorization of \(8^4\text{.}\) Hint: Use \(8=2^3\text{.}\)
  2. Without using computational technology, find the prime factorization of \(100^3\text{.}\) Hint: Use \(100=2^25^2\text{.}\)

15. Understand.

On this exercise, do not use computational technology.
  1. Find the prime factorization of \(25!\) Show some work. You may use the list of primes from ExampleΒ 4.4.5.
  2. Conjecture the number of zeros at the end of \(25!\) and explain your reasoning.
Check.
  1. Hint: The answer is of the form
    \begin{equation*} 2^{22} \cdot 3^b \cdot 5^c \cdot 7^d \cdot 11^e \cdot 13 \cdot 17 \cdot 19 \cdot 23\text{.} \end{equation*}
    Find the correct values of \(b\text{,}\) \(c\text{,}\) \(d\text{,}\) and \(e\text{.}\)
  2. Hint: Count the fives.

17. Explore.

Β 
  1. The natural number \(s\) is a (perfect) square if \(s = n^2\) for some integer \(n\text{.}\) Find the prime factorization of each square \(121 = 11^2\text{,}\) \(64 = 8^2\text{,}\) and \(62,500 =250^2\)
  2. What can you say about the prime factorization of a square? Hint: If you do not recognize a pattern, try simplifying
    \begin{equation*} s = n^2 = \left(p_1^{e_1}p_2^{e_2} \cdots p_k^{e_k}\right)^2\text{.} \end{equation*}
  3. The natural number \(c\) is a (perfect) cube if \(c = n^3\) for some integer \(n\text{.}\) Find the prime factorization of each cube \(125 = 5^3\text{,}\) \(64 = 4^3\text{,}\) and \(456,533 = 77^3\text{.}\)
  4. What can you say about the prime factorization of a cube? Hint: If you do not recognize a pattern, try simplifying
    \begin{equation*} s = n^3 = \left(p_1^{e_1}p_2^{e_2} \cdots p_k^{e_k}\right)^3\text{.} \end{equation*}
Check.
  1. Hint: \(62,500 =2^2 \cdot 5^6\text{.}\)
  2. Hint: Look at the exponents of the prime factorization.
  3. Hint: \(456,533 = 7^3 \cdot 11^3\text{.}\)
  4. Hint: Look at the exponents of the prime factorization.

18. Explore.

Β  An integer is square-free if every prime in its prime factorization is raised to the first power. For example, \(35 = 5 \cdot 7\) is square-free, but \(40 = 2^3 \cdot 5\) is not square-free.
  1. Use prime factorization to show that 105 and 106 are square-free.
  2. Use prime factorization to show that 80 and 90 are not square-free.
  3. Explain why if an integer \(n\) is not square-free, then it is divisible by \(p^2\) for some prime \(p\text{.}\)

19. Explore.

Β  By the uniqueness of the prime factorization TheoremΒ 4.4.11, any integer \(n > 1\) can be expressed in the form \(n = 2^ab\) where \(a \ge 0\) is an integer and \(b\) is an odd integer. The 2-part of \(n\) is \(2^a\text{.}\) For example, the 2-part of 60 is 4 because \(60 = 2^2 \cdot 3 \cdot 5=2^2 \cdot 15\) where 15 is odd and \(2^2 = 4\text{.}\) Show how to use the prime factorization of each integer to calculate its 2-part.
  1. 1,000
  2. 1,024
  3. 1,025

Subsubsection Exercises for 4.4.C Detour: Listing and Counting Divisors

20. Practice.

Β  Make a table as in ExampleΒ 4.4.14 to list the positive divisors of each integer. You may leave the divisors in prime-factored form
  1. \(\displaystyle 125=5^3\)
  2. \(\displaystyle 99 = 3^2 \cdot 11\)
  3. \(\displaystyle 100 = 2^2 \cdot 5^2\)
Check.
  1. Hint: The divisors are \(1, 5, 5^2\text{,}\) and \(5^3\text{.}\)
  2. Hint: Use columns labeled \(1, 3, 3^2\) and rows labeled \(1, 11\text{.}\)
  3. Hint: There are nine divisors.

21. Practice.

In this exercise, use the prime factorization to count the number of positive divisors. You do not need to list the divisors or make a table of divisors, but you might want to think about the dimensions of the table.
  1. How many positive divisors does \(81 = 3^4\) have?
  2. How many positive divisors does \(88 = 2^3 \cdot 11\) have?
  3. How many positive divisors does \(500 = 2^2 \cdot 5^3\) have?
  4. How many positive divisors does \(500 = 2^2 \cdot 5^3\) have?
Check.
  1. Hint: The table will have four columns and two rows.
  2. Hint: The table will have three columns and four rows.
  3. Hint: Count columns and rows.

22. Understand.

Primes have exactly two positive divisors. We saw in ActivityΒ 4.4.D, that an integer \(n=p^2\) where \(p\) is a prime has exactly three positive divisors and an integer \(n=p^3\) where \(p\) is a prime has exactly four positive divisors.
  1. If \(n\) is an integer with exactly three positive divisors, what can we say about the prime factorization of \(n\text{?}\)
  2. Give an example of an integer \(n\) that has exactly four positive divisors, but \(n \neq p^3\) for any prime \(p\text{.}\)
Check.
  1. Hint: Four and nine are examples.
  2. Hint: Try small values of \(n\text{.}\)

23. Understand.

Β 
  1. If an integer has exactly seven positive divisors, what is the form of its prime factorization? Hint: The table of divisors must be \(7 \times 1\text{.}\)
  2. If an integer has exactly eight positive divisors, what are the two possible forms of its prime factorization? Hint: The table of divisors could be \(8 \times 1\) or \(4 \times 2\text{.}\)
Check.
  1. Hint: There can only be one prime divisor.
  2. Hint: Integers with an \(8 \times 1\) table have one prime divisor and integers with a \(4 \times 2\) table have two prime divisors.

24. Understand.

On this exercise, do not use computational technology.
  1. Make a table as in ExampleΒ 4.4.19 to list the positive divisors of \(360 = 2^3 \cdot 3^2 \cdot 5\text{.}\) You may leave the divisors in prime-factored form.
  2. How many positive divisors does \(11,858 = 2\cdot 7^2 \cdot 11^2\) have? Note that you do not need to list them or make a table.

25. Recap.

Do you know …
  1. How to organize the positive divisors of an integer into tables based on the prime factorization of the integer?
  2. How to count the number of positive divisors of an integer from its prime factorization?
  3. How to construct examples of integers having a certain number of positive divisors?

26. Explore.

Β 
  1. If an integer has exactly 12 positive divisors, what are the four possible forms of its prime factorization? Hint: The table could be \(12 \times 1\text{,}\) \(6 \times 2\text{,}\) \(4 \times 3\text{,}\) or \(3 \times 2 \times 2\text{.}\)
  2. There are five integers between one and 100 that have exactly 12 divisors. Find them. That means without using any resources! Be sure to show some work.