My Math Studio  ·  Precalculus

1.4. Prime Factorization

10/10
Mastery
Watch the video
Optional
Do the practice set
Required
Take the mastery quiz
Required

Every number is built from primes, in exactly one way

A prime is a natural number above 1 whose only divisors are 1 and itself. Every other natural number above 1 is called composite: it is a product of primes, and the list of primes it is made from is unique to it.
Take \(360\). Divide out the primes and you get \(2 \times 2 \times 2 \times 3 \times 3 \times 5\). Start the same job differently, peeling off the \(5\) first or noticing \(360 = 36 \times 10\) and breaking those, and you land on the same list every time, in the same quantities. There is no second way in.

That uniqueness is doing all the work. Once you can write two numbers as products of primes, the largest number that divides both and the smallest number both divide are simply read off the two lists. You do not search for them; you look them up.

This is also why 1 is not counted as a prime. If it were, you could pad any factorisation with as many \(1\)s as you liked and the "exactly one way" would be false. Excluding 1 is a decision that buys the uniqueness.

Telling without dividing

By 2
2
last digit is even
By 3
3
digits add to a multiple of 3
By 4
4
last two digits divide by 4
By 5
5
last digit is 0 or 5
By 6
6
passes both 2 and 3
By 8
8
last three digits divide by 8
By 9
9
digits add to a multiple of 9
By 10
10
last digit is 0
By 11
11
alternating digit sum is 0 or a multiple of 11
By 12
12
passes both 3 and 4
One number, worked through the tests
Take \(4{,}158\). Its last digit is even, so 2 divides it. Its digits add to \(4+1+5+8=18\), a multiple of 9, so both 3 and 9 divide it; and since it passes 2 and 3 it also passes 6. Its last two digits make \(58\), which 4 does not divide, so 4 fails and 12 fails with it. The alternating sum \(8-5+1-4=0\), so 11 divides it. The last digit is not 0 or 5, so 5 and 10 both fail.

7 and 13 have no test worth learning. The usual tricks take longer than the division. When a table asks about 7 or 13, just divide and look at the remainder.
Combining tests only works when the parts share nothing
Passing 2 and 3 does prove divisibility by 6, because 2 and 3 share no factor. But passing 2 and 4 does not prove 8, and passing 3 and 6 does not prove 18: those pairs overlap, so between them they do not account for enough twos or threes. \(12\) passes 2 and 4 and is not divisible by 8.

Breaking a number down

Divide by the smallest prime that fits, and repeat
Start at 2 and work up through the primes. Each time one divides, take it out and carry on with what is left, trying the same prime again before moving on, because it may go in more than once. Stop when what remains is itself prime. \[360 \to 180 \to 90 \to 45 \to 15 \to 5\] \[360 = 2 \times 2 \times 2 \times 3 \times 3 \times 5\] Multiply your answer back out. If it does not return the number you started with, you have dropped a factor.
A prime number is its own factorization
If nothing divides a number, the answer is the number itself: not "none", and not 1 times the number. One of the numbers in your practice set is prime, and it catches people out. You only have to test primes up to the point where the next prime multiplied by itself passes your number; after that, there is nothing left to find.
Carved in stone proved once, true forever
The Fundamental Theorem of Arithmetic. Every natural number above 1 is either a prime or a product of primes, and that product is unique apart from the order of the factors.

A theorem is a statement that has been proved: shown to follow, step by step, from things already established, so that no later discovery can overturn it. This whole page has been leaning on the theorem above. "Exactly one way" is what it guarantees.

For most of history nobody thought it needed saying. Euclid proved the working parts around 300 BCE in the Elements, and for the next two thousand years mathematicians simply assumed the rest. The first explicit statement and proof are usually credited to Carl Friedrich Gauss, in 1801, in his Disquisitiones Arithmeticae. It took that long to notice that a fact everyone used still owed the reader a proof.

© 2026 S. R. Kingan. All rights reserved. Free for your own study. No copying or redistribution without written permission. Terms of use