Prime Factorization Calculator
Break a whole number into its prime factors. View the factorization in multiplication and exponent form, check whether the number is prime, and follow the division steps.
Enter an integer
This calculator uses trial division to find the prime factors of the entered integer. It runs in your browser and does not submit your number to a server.
Prime factorization result
Prime factor list
Step-by-step division
- 360 ÷ 2 = 180
- 180 ÷ 2 = 90
- 90 ÷ 2 = 45
- 45 ÷ 3 = 15
- 15 ÷ 3 = 5
- 5 ÷ 5 = 1
What is prime factorization?
Prime factorization is the process of expressing a whole number greater than 1 as a product of prime numbers. A prime number has exactly two positive divisors: 1 and itself. Every integer greater than 1 has a unique prime factorization, apart from the order of the factors.
Formula and notation
If a number contains repeated prime factors, they can be grouped using exponents. For example, 360 = 2 × 2 × 2 × 3 × 3 × 5 = 2³ × 3² × 5. The exponent tells you how many times that prime occurs.
How to use this calculator
- Enter an integer from 2 to 100,000,000.
- Choose whether to display multiplication form, exponent form, or both.
- Select Find prime factors.
- Review the repeated factors, distinct primes, number type, divisor count, and division steps.
- Use Copy results to copy the result text for your notes.
Example: prime factorization of 60
Divide 60 by the smallest prime, 2: 60 ÷ 2 = 30, then 30 ÷ 2 = 15. Next divide by 3: 15 ÷ 3 = 5. Finally, 5 ÷ 5 = 1. Therefore, 60 = 2 × 2 × 3 × 5 = 2² × 3 × 5.
Prime versus composite numbers
A prime number has exactly one prime factor when counted with repetition and has only two positive divisors. A composite number can be expressed as a product of smaller prime numbers and has more than two positive divisors. The number 1 is neither prime nor composite, so it is not accepted as an input here.
Frequently asked questions
What is the prime factorization of a number?
It is the expression of an integer greater than 1 as a product of prime numbers. For example, 84 = 2 × 2 × 3 × 7 = 2² × 3 × 7.
What is the difference between prime factors and distinct prime factors?
Prime factors with repeats count every occurrence. Distinct prime factors count each different prime only once. For 360, the repeated list is 2, 2, 2, 3, 3, 5, while the distinct primes are 2, 3, and 5.
Can a prime number be factorized?
Yes. Its prime factorization is the number itself. For example, 13 has the prime factorization 13 because 13 is prime.
Why is 1 not a prime number?
A prime number must have exactly two distinct positive divisors. The number 1 has only one positive divisor, so it is neither prime nor composite.
How are the number of divisors calculated?
If the prime factorization is p₁ᵃ × p₂ᵇ × …, the number of positive divisors is (a + 1)(b + 1)…. For 360 = 2³ × 3² × 5¹, the divisor count is (3 + 1)(2 + 1)(1 + 1) = 24.
What is the maximum number this calculator supports?
This page accepts integers from 2 through 100,000,000. Values outside that range, decimals, and negative numbers are rejected.
Educational use: results are generated by a deterministic integer-factorization method. Prime factorization is a mathematical operation and does not require financial, medical, or legal assumptions.