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. 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
#DivisorPaired divisor
115040
222520
331680
441260
551008
66840
77720
88630
99560
1010504
1112420
1214360
1315336
1416315
1518280
1620252
1721240
1824210
1928180
2030168
2135144
2236140
2340126
2442120
2545112
2648105
275690
286084
296380
307072
317270
328063
338460
349056
3510548
3611245
3712042
3812640
3914036
4014435
4116830
4218028
4321024
4424021
4525220
4628018
4731516
4833615
4936014
5042012
5150410
525609
536308
547207
558406
5610085
5712604
5816803
5925202
6050401
  • Divisors are listed in ascending order; the paired divisor is the one it multiplies with to give the original number.

Message board

All messages →
0/200

  • No one has spoken up yet — want to go first?