What is prime factorization?
A prime number is a whole number greater than 1 with no divisors other than 1 and itself. Any other whole number above 1 is composite and can be broken into primes. This breakdown is its prime factorization.
The calculator gives the repeated division steps, the factorization with exponents and the number of divisors.
How prime factorization works
How to use the prime factorization calculator
- Type a whole number, from 1 up to a trillion.
- Read the factorization in the answer.
- Read the repeated division steps.
- Read the divisor count.
- Use the primes to find the GCF or LCM with other numbers.
Prime factorization examples
Example 1: A composite number
Factor 360. 360 ÷ 2 = 180, 180 ÷ 2 = 90, 90 ÷ 2 = 45, 45 ÷ 3 = 15, 15 ÷ 3 = 5, 5 ÷ 5 = 1. The primes used are 2, 2, 2, 3, 3 and 5, so 360 = 2³ × 3² × 5. It has 4 × 3 × 2 = 24 divisors.
Example 2: A prime number
Factor 97. Test the primes up to its square root, about 9.8: 2, 3, 5 and 7 do not divide it. So 97 is prime, and the tool says so. A prime has just two divisors, 1 and 97.
Example 3: A number with three large primes
Factor 1,001. 1,001 ÷ 7 = 143, 143 ÷ 11 = 13, and 13 is prime. So 1,001 = 7 × 11 × 13. The number has (1 + 1)(1 + 1)(1 + 1) = 8 divisors.
Example 4: A square
Factor 144. 144 = 2⁴ × 3². The divisor count is (4 + 1)(2 + 1) = 15, which is odd, so 144 is a perfect square. Indeed 144 = 12².
Factors vs prime factors
The factors of 12 are every number that divides it: 1, 2, 3, 4, 6 and 12. The prime factors are only the primes in that list, 2 and 3, and the prime factorization shows how many times each is used: 12 = 2² × 3. To see every factor and the factor pairs, use the factor calculator.
Is 0 or 1 prime?
Neither. A prime has exactly two factors, 1 and itself. The number 1 has only one factor, and 0 is divisible by every number, so it has infinitely many. Numbers above 1 that are not prime are called composite. Every composite number has exactly one prime factorization, apart from the order of the primes.
What you can do with a prime factorization
- GCF. Multiply the primes two numbers share, at the lower power. The GCF calculator does this for up to 10 numbers.
- LCM. Multiply every prime that appears, at the higher power, as in the LCM calculator.
- Simplify square roots. √72 = √(2³ × 3²) = 6√2.
- Count divisors. Add 1 to each exponent and multiply: 360 has 4 × 3 × 2 = 24 divisors.
Tips
- Test your answer by multiplying the primes back together.
- The exponent shows how many times a prime repeats.
- Use the divisibility rules for 2, 3 and 5 to guess the first steps by hand.
- To list every factor and factor pair, use the factor calculator.
- For two or more numbers, use the GCF calculator or the LCM calculator.
Common mistakes
- Stopping early. Make sure every number on your list is prime.
- Treating 1 as a prime.
- Forgetting repeated primes. 72 is 2³ × 3², not 2 × 3 × 3.
- Mixing up factors and prime factors.
Real-life uses
Prime factorization is used to simplify fractions, find the GCF and LCM, count divisors and understand encryption. Online security relies on the fact that multiplying two large primes is quick but splitting the product back into primes is very slow. In school, it also helps with square roots and with finding perfect squares. See prime factorization made simple for the method by hand.