Check whether a number is prime, distinguishing a proof from strong evidence and naming a factor when it is composite.
Prime Factorization Calculator
Find the prime factorisation of a whole number, with the divisor count and sum, using Pollard’s rho for large factors.
- Free
- No sign-up
- Runs in your browser
Input
A positive whole number.
Try an example
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter a positive whole number.
- 2
The factorisation appears with each prime and its exponent, plus the number of divisors and their sum.
- 3
If a large cofactor cannot be factored within the limit it is reported as unfactored rather than guessed at.
Questions about Prime Factorization Calculator
How large a number can it handle?
Small factors come out instantly by trial division. Beyond that it uses Pollard’s rho, which handles semiprimes of twenty digits or so comfortably - the test suite factors 2^67 - 1 into 193707721 x 761838257287, the factorisation Frank Nelson Cole famously computed by hand in 1903. Numbers deliberately built from two large primes, as RSA keys are, will exceed the limit, and then the tool says the factorisation is incomplete rather than presenting a composite cofactor as prime.
What are the divisor count and sum for?
They come free from the exponents: a number with factorisation 2^3 x 3^2 has (3+1)(2+1) = 12 divisors. The sum of divisors identifies perfect numbers, where the proper divisors add up to the number itself - 6, 28 and 496 are the first three.
Why does 1 have no factors?
Because 1 is the empty product. It is not prime and has no prime factors; multiplying no primes together gives 1 by convention, which is what makes the fundamental theorem of arithmetic work without a special case.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Prime Factorization Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Prime Factorization Calculator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Find the greatest common divisor of two or more whole numbers, with Euclid's steps and the Bezout coefficients.
Find the least common multiple of two or more whole numbers, exactly.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.