Prime Factorization Calculator
One integer per line - factor it into primes with exponent form, divisor count and divisor sum
Output:
Separator:
Calculation Result
Download CSV
| No. | Original | Factorization | Exponent form | Divisors | Sum of divisors |
|---|
Introduction to the tool and how to use it
Turn integers into a product of primes, one number per line, as many lines as you like.
How to use:
1. Enter one integer per line, e.g.
2. Choose the output form (product + exponent, product only, exponent only);
3. Hit Run to get both forms together with the divisor count and divisor sum - copy it or export as CSV.
For example 360 = 2 x 2 x 2 x 3 x 3 x 5 = 2^3 x 3^2 x 5, with 24 divisors adding up to 1170.
The maths uses BigInt: primes below 1000 strip the small factors, then Miller-Rabin tests primality and Pollard rho splits what is left, so any composite up to 18 digits is factored quickly. Composites that are too long to split are skipped with a notice rather than reported wrongly.
How to use:
1. Enter one integer per line, e.g.
360;2. Choose the output form (product + exponent, product only, exponent only);
3. Hit Run to get both forms together with the divisor count and divisor sum - copy it or export as CSV.
For example 360 = 2 x 2 x 2 x 3 x 3 x 5 = 2^3 x 3^2 x 5, with 24 divisors adding up to 1170.
The maths uses BigInt: primes below 1000 strip the small factors, then Miller-Rabin tests primality and Pollard rho splits what is left, so any composite up to 18 digits is factored quickly. Composites that are too long to split are skipped with a notice rather than reported wrongly.
Factorization
Prime factorization of 5040
5040 = 2^4 × 3^2 × 5 × 7, which is 2 × 2 × 2 × 2 × 3 × 3 × 5 × 7 written out in full.
- Exponent form2^4 × 3^2 × 5 × 7
- Product form2 × 2 × 2 × 2 × 3 × 3 × 5 × 7
- Divisor count60
- Divisor sum19344
Divisor list
| # | Divisor | Paired divisor |
|---|---|---|
| 1 | 1 | 5040 |
| 2 | 2 | 2520 |
| 3 | 3 | 1680 |
| 4 | 4 | 1260 |
| 5 | 5 | 1008 |
| 6 | 6 | 840 |
| 7 | 7 | 720 |
| 8 | 8 | 630 |
| 9 | 9 | 560 |
| 10 | 10 | 504 |
| 11 | 12 | 420 |
| 12 | 14 | 360 |
| 13 | 15 | 336 |
| 14 | 16 | 315 |
| 15 | 18 | 280 |
| 16 | 20 | 252 |
| 17 | 21 | 240 |
| 18 | 24 | 210 |
| 19 | 28 | 180 |
| 20 | 30 | 168 |
| 21 | 35 | 144 |
| 22 | 36 | 140 |
| 23 | 40 | 126 |
| 24 | 42 | 120 |
| 25 | 45 | 112 |
| 26 | 48 | 105 |
| 27 | 56 | 90 |
| 28 | 60 | 84 |
| 29 | 63 | 80 |
| 30 | 70 | 72 |
| 31 | 72 | 70 |
| 32 | 80 | 63 |
| 33 | 84 | 60 |
| 34 | 90 | 56 |
| 35 | 105 | 48 |
| 36 | 112 | 45 |
| 37 | 120 | 42 |
| 38 | 126 | 40 |
| 39 | 140 | 36 |
| 40 | 144 | 35 |
| 41 | 168 | 30 |
| 42 | 180 | 28 |
| 43 | 210 | 24 |
| 44 | 240 | 21 |
| 45 | 252 | 20 |
| 46 | 280 | 18 |
| 47 | 315 | 16 |
| 48 | 336 | 15 |
| 49 | 360 | 14 |
| 50 | 420 | 12 |
| 51 | 504 | 10 |
| 52 | 560 | 9 |
| 53 | 630 | 8 |
| 54 | 720 | 7 |
| 55 | 840 | 6 |
| 56 | 1008 | 5 |
| 57 | 1260 | 4 |
| 58 | 1680 | 3 |
| 59 | 2520 | 2 |
| 60 | 5040 | 1 |
- Divisors are listed in ascending order; the paired divisor is the one it multiplies with to give the original number.
Common inputs
Message board
All messages →-
No one has spoken up yet — want to go first?