Skip to content
Zesona
Prime Factorization CalculatorLocal

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

Runs in your browser

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. 1

    Enter a positive whole number.

  2. 2

    The factorisation appears with each prime and its exponent, plus the number of divisors and their sum.

  3. 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.

Other tools you might reach for next.