Prime Factorization Calculator

Quick answer

The prime factorization calculator breaks any whole number (even one with 20+ digits) into its prime factors, in exponent and list form, with a factor tree, the number of divisors and their sum.

Prime factorisation
2³ × 3² × 5
As a product of primes
2 × 2 × 2 × 3 × 3 × 5
Number of divisors
24
Sum of divisors
1170
Factor tree (steps)
360 = 2 × 180 180 = 2 × 90 90 = 2 × 45 45 = 3 × 15 15 = 3 × 5 5 = 5 × 1
Is it prime?
No – it is composite

Every whole number greater than 1 is a product of primes in exactly one way (the fundamental theorem of arithmetic). Prime factorisations give GCFs, LCMs, simplified radicals and fractions, and the number of divisors.

How to use the Prime Factorization Calculator

  1. Enter a number

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

Small primes are removed by trial division; larger factors are found with the Pollard rho method and confirmed with the Miller–Rabin primality test, all with exact BigInt arithmetic in your browser.

Formula

n = p₁^e₁ × p₂^e₂ × … × pₖ^eₖ Number of divisors = (e₁ + 1)(e₂ + 1)…(eₖ + 1)

Worked example

Inputs: Enter a number: 360.
Results: Prime factorisation = 2³ × 3² × 5; As a product of primes = 2 × 2 × 2 × 3 × 3 × 5; Number of divisors = 24; Sum of divisors = 1170; Factor tree (steps) = 360 = 2 × 180
180 = 2 × 90
90 = 2 × 45
45 = 3 × 15
15 = 3 × 5
5 = 5 × 1; Is it prime? = No – it is composite.

Key terms

Prime factor
A prime number that divides n.
Fundamental theorem of arithmetic
Every integer > 1 has a unique prime factorisation.

Frequently asked questions

What is the prime factorisation of 360?

2³ × 3² × 5.

Is 1 a prime?

No, 1 has no prime factors.

How many divisors does 360 have?

(3 + 1)(2 + 1)(1 + 1) = 24.

Why is factorisation hard for huge numbers?

No fast general algorithm is known, which is what keeps RSA secure.

Sources

  1. OpenStax: Contemporary Mathematics
  2. Wolfram MathWorld: Prime factorization

Cite this calculator

Speedy Calculator. (2026). Prime Factorization Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/prime-factorization/