Math

Prime Factorization Explained: Factor Trees, Divisors

Prime factorization writes a number as a product of primes. Divide by the smallest prime that fits and repeat. 360 = 2³ × 3² × 5, which is 2 × 2 × 2 × 3 × 3 × 5. Adding 1 to each exponent and multiplying shows that 360 has 24 divisors.

By CalculatorHub Editorial TeamPublished December 2, 2026Updated December 2, 20265 min read
Run the numbers yourself. Try our free Prime Factorization Calculator and see the result with your own figures.

Repeated division

Start with 360. Divide by 2 until it no longer fits: 360 → 180 → 90 → 45. Move to 3: 45 → 15 → 5. 5 is prime, so you stop. The factors are 2, 2, 2, 3, 3, 5, or 2³ × 3² × 5.

Factor tree

Split a number into any two factors, then split any that are not prime. 84 → 12 × 7 → (3 × 4) × 7 → 3 × (2 × 2) × 7. Every route ends at 2² × 3 × 7.

Why it is unique

The fundamental theorem of arithmetic says every whole number above 1 has exactly one prime factorization (ignoring order). That is why 1 is not counted as a prime.

What you can do with it

  • Count divisors: (3+1)(2+1)(1+1) = 24 for 360.
  • Find the GCF and LCM from shared and highest powers (see how to find GCF and LCM).
  • Simplify fractions and square roots.

Use the prime factorization calculator for any number up to a trillion.

A bigger example: 1,260

Divide by 2 twice (1,260 → 630 → 315), then by 3 twice (315 → 105 → 35), then by 5 (35 → 7), and 7 is prime. So 1,260 = 2² × 3² × 5 × 7. Add 1 to each exponent and multiply: (2+1)(2+1)(1+1)(1+1) = 36 divisors.

Divisibility shortcuts

Divisible byTest
2Last digit is even
3Digit sum divisible by 3
5Last digit is 0 or 5
9Digit sum divisible by 9
11Alternating digit sum divisible by 11

Primes up to 50

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47. To test a number up to 2,500, you only need to check primes up to 47, since the square root of 2,500 is 50.

Why prime factorization matters beyond school

Multiplying two large primes is easy, but factoring the product is very hard, and that difficulty protects much of the encryption used for online banking. Try your own numbers in the prime factorization calculator.

Key terms

  • Prime number: A number greater than 1 with exactly two divisors.
  • Composite number: A number with more than two divisors.
  • Factor: A number that divides another exactly.
  • Exponent: Shows how many times a prime repeats.
  • Fundamental theorem of arithmetic: Every whole number above 1 has a unique prime factorization.

Practice questions

Try each one before you read the answer.

  1. Prime factorization of 90?
    Answer: 2 × 3² × 5.
  2. Prime factorization of 143?
    Answer: 11 × 13.
  3. Is 91 prime?
    Answer: No, 91 = 7 × 13.
  4. How many divisors does 28 have?
    Answer: 6: 1, 2, 4, 7, 14 and 28.

Check your factorization

Multiply the prime factors back together and make sure you reach the original number. For 1,260, 2² × 3² × 5 × 7 = 4 × 9 × 5 × 7 = 1,260. Also confirm that each factor is really prime, since a common slip is to stop at a composite such as 9 or 15. If you are unsure whether a number is prime, test whether any prime up to its square root divides it.

Frequently asked questions

What is a prime number?

A whole number greater than 1 with exactly two divisors: 1 and itself. 2, 3, 5, 7 and 11 are primes.

What is the prime factorization of 360?

360 = 2³ × 3² × 5.

How can I tell if a number is prime?

Test whether any prime up to its square root divides it. If none does, the number is prime.

Is 2 the only even prime?

Yes. Every other even number is divisible by 2, so it has at least three divisors.

How many primes are there?

Infinitely many. Euclid proved this more than 2,000 years ago.

Try the calculators

Keep reading