Prime Factorization Calculator
Break an integer into its prime factors with exponents, and list all its divisors and their count.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Prime Factorization Calculator does
Use this prime factorization calculator to break an integer into its prime factors with exponents, and list all its divisors and their count. Fill in the single field and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for finding the prime factors of a number for homework or number theory. Companion tools to this one live on FreeToolStation.org.
How to use it
- Enter a positive integer. Anything up to ten million lists its full set of divisors.
- Read the prime factorization, written with exponents where a prime repeats.
- The divisor count comes from the exponents, so it needs no listing of divisors to compute.
- The full divisor list is shown below it, truncated past 200 entries.
How it works
The fundamental theorem of arithmetic says every integer greater than one factors into primes in exactly one way, ignoring order. That uniqueness is why prime factorization is the canonical description of a number and why so much else follows from it.
The divisor count comes straight from the factorization: add one to each exponent and multiply. 360 = 2³ × 3² × 5 gives (3+1)(2+1)(1+1) = 24 divisors, which is why 360 is such a convenient number for dividing circles and hours.
Trial division, which this uses, is fast for the sizes handled here but hopeless for large numbers. That asymmetry — easy to multiply, hard to factor — is the foundation of RSA encryption. Factoring a 2048-bit product of two primes is beyond any known classical method in reasonable time.
When to use it
- Finding the prime factors of a number for homework or number theory.
- Simplifying fractions by finding common factors.
- Working out how many divisors a number has.
- Checking whether a number is prime.
Common mistakes to avoid
- Forgetting that 1 is neither prime nor composite.
- Treating a prime factorization as unique up to order — it is, and that is the point.
- Expecting this to factor cryptographically large numbers. Trial division cannot.
Frequently asked questions
What is the prime factorization of 360?
2³ × 3² × 5. That gives it 24 divisors, which is unusually many for its size.
How do I count the divisors of a number?
Add one to each exponent in the prime factorization and multiply. For 2³ × 3² × 5 that is 4 × 3 × 2 = 24.
Why is factoring hard for large numbers?
No known classical algorithm factors a general large integer efficiently. Multiplying two 1024-bit primes is instant; recovering them from the product is not, and RSA encryption rests on that gap.