Ultimate Calculator
Math

Prime Factorization Calculator

Break any whole number into its prime factors, check whether it is prime and list its divisors.

Prime factorization

2³ × 3² × 5

Number of divisors
24
Divisors
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360
  1. 360 ÷ 2 = 180
  2. 180 ÷ 2 = 90
  3. 90 ÷ 2 = 45
  4. 45 ÷ 3 = 15
  5. 15 ÷ 3 = 5
  6. 5 ÷ 5 = 1

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

  1. Enter whole number.
  2. 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.

  1. 360 ÷ 2 = 180
  2. 180 ÷ 2 = 90
  3. 90 ÷ 2 = 45
  4. 45 ÷ 3 = 15
  5. 15 ÷ 3 = 5
  6. 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.