Prime Factorization Calculator - Factor Tree and Divisors
Prime Factorization Calculator
Up to 24 digits. Very large numbers can take a moment; the page stays responsive.
This is a prime number: it is divisible only by 1 and itself.
1 is neither prime nor composite. Its factorization is the empty product.
1; 2; 3; 4; 5; 6; 8; 9; 10; 12; 15; 18; 20; 24; 30; 36; 40; 45; 60; 72; 90; 120; 180; 360
Step-by-step solution
About prime factorization
Every whole number greater than 1 is a product of primes in exactly one way, apart from the order. That product is its prime factorization.
How to use it
- 1 Type a whole number or pick an example.
- 2 Read the factorization and follow the factor tree from top to bottom.
- 3 See the divisors and the division steps below.
Formula
Finding factors by hand
Divide by 2 as long as possible, then by 3, 5, 7 and so on. You can stop when the prime you are trying, multiplied by itself, is larger than what is left; the rest is then prime.
Counting divisors
Add 1 to each exponent and multiply. For 360 = 2³ × 3² × 5 that gives 4 × 3 × 2 = 24 divisors.
How large numbers are handled
Small primes are removed by division. The rest is tested with the Miller-Rabin test, using bases that make it exact for this size, and split with the Pollard rho method.
Related calculators: GCF and LCM · Logarithm