The formula
n = p₁^a × p₂^b × …
Every whole number above 1 is either prime or can be written as a product of primes in exactly one way. To find that product, divide by the smallest prime that fits and repeat on the result until you reach 1.
How to use this calculator
- Enter whole number.
- Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.
Worked example
Using Whole number: 360.
- 360 ÷ 2 = 180
- 180 ÷ 2 = 90
- 90 ÷ 2 = 45
- 45 ÷ 3 = 15
- 15 ÷ 3 = 5
- 5 ÷ 5 = 1
Prime factorization: 2³ × 3² × 5
Common questions
What is a prime number?
A whole number greater than 1 whose only divisors are 1 and itself. 2, 3, 5, 7 and 11 are the first five.
Is 1 a prime number?
No. Primes must have exactly two distinct divisors, and 1 has only one.