Loading…

Prime Factorization Tool

Math Algebra • Numbers

View all topics

Break an integer into prime factors and write the result in repeated-factor and exponent form. For example, \[ \begin{aligned} 840 &= 2^3\times3\times5\times7. \end{aligned} \] Repeated division by primes finds the factorization.

Number input

Use an integer with \(|n|\le 10^{12}\). For negative numbers, the calculator writes the factorization as \(-1\) times the prime factorization of \(|n|\). The numbers \(0\), \(1\), and \(-1\) do not have ordinary prime factorizations.

Quick examples

Ready
Enter a number, then click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is prime factorization?

Prime factorization is writing an integer greater than 1 as a product of prime numbers.

What is exponent form?

Exponent form combines repeated equal primes into powers. For example, 2 × 2 × 2 becomes 2^3.

What is the prime factorization of 840?

The prime factorization of 840 is 2^3 × 3 × 5 × 7.

How does repeated division find prime factors?

Divide by the smallest prime that divides the number exactly. Keep dividing by that prime while possible, then move to the next prime.

What is a factor tree?

A factor tree repeatedly splits a number into factors until every branch ends in a prime number. The prime leaves are the prime factors.

What if the number is already prime?

If the number is prime, its prime factorization is simply the number itself.

Can negative numbers be factorized?

A negative integer is handled by factoring out -1, then factorizing its positive absolute value.

Does 1 have a prime factorization?

No. The number 1 has no prime factors, so it does not have an ordinary prime factorization.

What does the divisor count mean?

The divisor count is the number of positive divisors of the positive part of the input number.

How can prime factorization tell whether a number is a perfect square?

A positive integer is a perfect square exactly when all exponents in its prime factorization are even.