+Calculator+

Prime Factorization Calculator

Factor any positive integer into its prime factors. Shows exponent form, expanded product, divisor count, and sum of divisors.

Factor a positive integer

Enter an integer between 2 and 1,000,000,000,000.

Prime factorization

360 = 23*32*5

Divisor count

24

Sum of divisors

1,170

Distinct primes

3

Expanded form

2 * 2 * 2 * 3 * 3 * 5

Frequently Asked Questions about the Prime Factorization Calculator

What is prime factorization?
Prime factorization breaks a positive integer into a product of prime numbers. Every integer greater than 1 has exactly one such factorization (up to order), a result known as the Fundamental Theorem of Arithmetic. For example, 360 = 2^3 * 3^2 * 5.
Why does 1 have no prime factorization?
1 is neither prime nor composite. By convention it is treated as the empty product (no factors at all), which keeps the Fundamental Theorem clean: every integer greater than 1 factors uniquely into primes, and 1 sits outside that rule. This calculator returns no result for 1, 0, or negative inputs.
How does this calculator factor large numbers?
It uses trial division with BigInt arithmetic. After stripping the small primes 2, 3, 5, 7, and 11, it tests odd candidates up to the square root of the remaining value. For inputs up to 1 trillion (10^12), that is at most about 1 million iterations, which finishes in well under a second in your browser.
What are the divisor count and sum of divisors?
If n = p1^e1 * p2^e2 * ... then the divisor count (tau function) is (e1+1)(e2+1)... and the sum of divisors (sigma function) is the product of (p^(e+1) - 1) / (p - 1) over each prime. For 12 = 2^2 * 3, that gives 6 divisors (1, 2, 3, 4, 6, 12) summing to 28.
What is the largest number this calculator can factor?
The maximum input is 1,000,000,000,000 (10^12). That cap keeps trial division responsive on every device. For much larger semiprimes (the kind used in cryptography), trial division is hopelessly slow and specialized algorithms like the General Number Field Sieve are needed instead.