Prime Factorization
Voltage drop, wire sizing, load balancing
Every whole number greater than is either prime or composite, and every composite number can be broken down into a unique product of prime factors. This idea — called the fundamental theorem of arithmetic — is one of the most important facts in all of mathematics. Prime factorization is the tool that makes GCF and LCM calculations systematic, simplifies fractions efficiently, and builds the foundation for algebra topics like factoring polynomials.
Prime vs Composite Numbers
Prime Numbers
A prime number is a whole number greater than that has exactly two factors: and itself.
The first several prime numbers are:
Key facts about primes:
- is the only even prime. Every other even number is divisible by (and therefore has more than two factors).
- is neither prime nor composite. By convention, is excluded because it has only one factor (itself).
- There are infinitely many primes. No matter how far you count, there are always more primes ahead.
Composite Numbers
A composite number is a whole number greater than that has more than two factors. In other words, it can be divided evenly by at least one number other than and itself.
Examples:
Example 1: Classify Numbers as Prime or Composite
Classify: , , ,
- : factors are and only. Prime.
- : , so it has factors . Composite.
- : factors are and only. Prime. (The smallest and only even prime.)
- : digit sum , divisible by . . Composite.
How to Test if a Number Is Prime
To check whether a number is prime, test for divisibility by every prime up to . If none of them divide evenly, the number is prime.
Example 2: Is 97 Prime?
, so test primes up to : that means .
- — not divisible
- : digit sum , not divisible by
- — not divisible
- — not divisible
No prime up to divides , so is prime.
The Sieve of Eratosthenes
The Sieve of Eratosthenes is an ancient algorithm for finding all prime numbers up to a given limit. It works by systematically eliminating composite numbers.
How it works (finding primes up to 30):
- Write out all numbers from to
- Circle (prime). Cross out every multiple of :
- The next uncrossed number is (prime). Cross out every multiple of not already crossed:
- The next uncrossed number is (prime). Cross out every multiple of not already crossed:
- , so we stop checking here
Primes up to 30:
The sieve is efficient because each step eliminates many composites at once. For finding all primes up to a moderate number (say, or ), it is faster than testing each number individually.
Factor Trees
A factor tree is a diagram that breaks a composite number down into its prime factors step by step. At each level, you split a number into two factors. You keep splitting until every branch ends at a prime.
Example 3: Factor Tree for 60
Start with and find any factor pair:
is prime (stop). Now break down :
is prime (stop). Now break down :
Both and are prime (stop).
Reading the primes at the ends of all branches:
Example 4: Factor Tree for 72
Break down :
Break down :
Does the Starting Split Matter?
No. You can start with any factor pair and you will always arrive at the same set of prime factors. This is guaranteed by the fundamental theorem of arithmetic.
For example, starting differently:
Same result.
Example 5: Factor Tree for 180
Break down :
Break down :
Combine:
Writing Prime Factorization with Exponents
When the same prime appears multiple times, use exponents to write the factorization compactly.
| Number | Factor Tree Result | With Exponents |
|---|---|---|
Convention: Write primes in ascending order ( before before , etc.).
Using Prime Factorization to Find GCF and LCM
Prime factorization makes GCF and LCM calculations straightforward, especially for larger numbers where listing all factors or multiples would be tedious.
GCF: Shared Primes, Smaller Exponents
Example 6: GCF of 84 and 126
Shared primes: , , .
- : smaller exponent is
- : smaller exponent is
- : smaller exponent is
LCM: All Primes, Larger Exponents
Example 7: LCM of 84 and 126
Using the same factorizations:
- : larger exponent is
- : larger exponent is
- : larger exponent is
Verification using the relationship:
The Fundamental Theorem of Arithmetic
The fundamental theorem of arithmetic states:
Every integer greater than is either a prime or can be written as a product of primes in exactly one way (ignoring the order of the factors).
This means:
- Existence: Every composite number can be broken into primes
- Uniqueness: There is only one way to do it (the same primes with the same exponents)
For example, is the only prime factorization of . No matter which factor tree you draw, you always end up with three s, two s, and one .
This uniqueness is what makes prime factorization so powerful — it gives every number a “fingerprint” that you can use reliably for GCF, LCM, and fraction operations.
Real-World Application: Electrician — Wire Bundling
An electrician has three cable runs: one with wires, one with wires, and one with wires. To organize them neatly into the junction box, the electrician wants to bundle wires into equal-sized groups with no wires left over. What is the largest bundle size?
Use prime factorization to find the GCF:
Shared primes with smallest exponents:
- : smallest is
- : smallest is
The electrician bundles wires in groups of 12:
- bundles
- bundles
- bundles
That is total bundles, all the same size, with no loose wires.
Common Mistakes to Avoid
- Stopping a factor tree too early. Every branch must end at a prime. is not complete because . The correct factorization is .
- Calling a prime. By mathematical convention, is not prime. Including it in a factorization (like ) is incorrect — the Fundamental Theorem of Arithmetic requires factorization into primes only, and is not prime.
- Forgetting to use exponents. Writing is correct but hard to read. The standard form is .
- Mixing up GCF and LCM exponent rules. For GCF, take the smaller exponent of shared primes. For LCM, take the larger exponent of all primes. Swapping these is the single most common error.
- Thinking different factor trees give different results. The path may differ ( vs ), but the final set of primes is always the same.
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Classify each number as prime or composite: , , , .
- : test primes up to — not divisible by . Prime.
- . Composite.
- : test primes up to — not divisible by . Prime.
- . Composite.
Problem 2: Write the prime factorization of .
Answer:
Problem 3: Write the prime factorization of .
Answer:
Problem 4: Use prime factorization to find the GCF of and .
, .
Shared primes, smaller exponents: , , .
Answer:
Problem 5: Use prime factorization to find the LCM of and .
Using the factorizations from Problem 4, take larger exponents:
, , .
Answer:
Verification: . Checks out.
Problem 6: Is prime? If not, write its prime factorization.
. Test primes up to : .
- is odd (not divisible by )
- Digit sum (not divisible by )
- Does not end in or (not divisible by )
- (exact)
Answer: is composite. .
Problem 7: An electrician needs to split , , and wires into equal bundles. What is the largest bundle size?
, , .
Only shared prime is , smallest exponent is .
Answer: The largest bundle size is 16 wires (, , bundles).
Key Takeaways
- Prime numbers have exactly two factors ( and themselves); composite numbers have more than two
- is the only even prime, and is neither prime nor composite
- A factor tree breaks a number into primes by splitting at each level until all branches reach a prime
- Prime factorization with exponents is the standard way to express a number’s prime breakdown (e.g., )
- The fundamental theorem of arithmetic guarantees that every integer greater than has a unique prime factorization
- To find the GCF, take shared primes with the smaller exponent; to find the LCM, take all primes with the larger exponent
- Factor trees can start with any factor pair — the final result is always the same
Return to Pre-Algebra for more topics in this section.
Next Up in Pre Algebra
Last updated: March 29, 2026