Prime Numbers &
Factorization
Explore the building blocks of integers: learn what makes a number prime, master prime factorization, and discover why every integer has a unique decomposition.
What Is a Prime Number?
A prime number is an integer greater than \(1\) whose only positive divisors are \(1\) and itself. If \(p\) is prime and \(a \mid p\), then \(a = 1\) or \(a = p\).
Why Do Primes Matter?
Primes are the atoms of arithmetic. Every integer greater than \(1\) can be built from them. This idea underpins modern cryptography, computer science, and abstract algebra.
Visualizing Primes on a Number Line
The Fundamental Theorem of Arithmetic
This theorem guarantees that prime factorization is well-defined. No matter how you factor an integer, you always arrive at the same set of prime powers.
Factor Tree: \(60\)
Prime vs. Composite
| Prime | Composite | |
|---|---|---|
| Divisor Count | Exactly \(2\) | \(\geq 3\) |
| Smallest Example | \(2\) | \(4\) |
| Even Members | Only \(2\) | \(4, 6, 8, 10, \ldots\) |
| Factorization | \(p = p\) | \(n = p_1^{a_1} \cdots p_k^{a_k}\), \(k \geq 2\) or \(a_1 \geq 2\) |
| Role in FTA | Building block | Product of building blocks |
How to Test for Primality
To check whether \(n\) is prime, you only need to test divisors up to \(\sqrt{n}\). If no prime \(p \leq \sqrt{n}\) divides \(n\), then \(n\) is prime.
How to Prime Factorize
Example: Factorize \(84\)
Example: Factorize \(360\)
Example: Is \(97\) Prime?
We need to check all primes up to \(\sqrt{97} \approx 9.85\). That means testing: \(2, 3, 5, 7\).
GCD and LCM from Factorizations
Given \(a = p_1^{a_1} \cdots p_k^{a_k}\) and \(b = p_1^{b_1} \cdots p_k^{b_k}\) (using exponent \(0\) for missing primes):
Take the smaller exponent for each prime
Take the larger exponent for each prime
Example: \(\gcd(84, 360)\) and \(\text{lcm}(84, 360)\)
| Prime | \(84\) | \(360\) | min | max |
|---|---|---|---|---|
| \(2\) | \(2^2\) | \(2^3\) | \(2^2\) | \(2^3\) |
| \(3\) | \(3^1\) | \(3^2\) | \(3^1\) | \(3^2\) |
| \(5\) | \(5^0\) | \(5^1\) | \(5^0\) | \(5^1\) |
| \(7\) | \(7^1\) | \(7^0\) | \(7^0\) | \(7^1\) |
Common Mistakes
Key Takeaways
Question 1 of 5
Which of the following numbers is prime?
Question 2 of 5
What is the prime factorization of \(180\)?
Question 3 of 5
Given \(a = 2^3 \cdot 3 \cdot 7\) and \(b = 2^2 \cdot 3^2 \cdot 5\), what is \(\gcd(a, b)\)?
Question 4 of 5
To test whether \(n = 113\) is prime by trial division, what is the largest prime you need to check?
Question 5 of 5
Which statement best describes the Fundamental Theorem of Arithmetic?