Prime Factorization Calculator — Every Number's Building Blocks
Break any whole number into its prime factors, with a full step-by-step division trace and divisor stats.
n = p₁ᵃ × p₂ᵇ × ...
PRIME FACTORIZATION
d(n) = Π(a+1)
DIVISOR COUNT
even exponents
PERFECT SQUARE
Prime Factorization
Break any number into its primes
360 =
2³ × 3² × 5
3
Distinct Primes
24
Total Divisors
1,170
Sum of Divisors
No
Perfect Square?
🔢 Prime Factors
| Prime | Exponent |
|---|---|
| 2 | 3 |
| 3 | 2 |
| 5 | 1 |
📋 Division Trace
| Divide By | Result |
|---|---|
| ÷ 2 | 180 |
| ÷ 2 | 90 |
| ÷ 2 | 45 |
| ÷ 3 | 15 |
| ÷ 3 | 5 |
| ÷ 5 | 1 |
How the Factorization Is Found
🔁 Trial Division
We divide out 2 as many times as possible, then 3, then every odd number up the line, stopping once the divisor passes the square root of what's left.
🏗️ Exponent Notation
Repeated primes get collapsed into a power — three factors of 2 become 2³ — which is the standard, compact way to write a factorization.
📊 Divisor Formulas
Once you know the prime powers, both the total number of divisors and their sum come from simple formulas — no need to list every divisor by hand.
🔐 Real-World Use
Beyond the classroom, prime factorization underlies simplifying fractions, finding LCM/GCF for larger numbers, and the mathematics behind modern encryption.
— FAQ