Prime Factorization Calculator

Factor any integer fast with Miller-Rabin primality tests, Pollard's Rho splits, and small-prime trial division to reveal canonical products and core arithmetic functions.

Other languages: ja | en | zh-CN | es | pt-BR | id | vi | ko | fr | de | it

Set to 0 to skip listing divisors (max 100,000).

FAQ

Which integers can this prime factorization calculator handle?

It accepts signed integers up to roughly 120 digits. Values within +/- 1018 factor almost instantly by combining Miller-Rabin checks with Pollard's Rho and small prime trial division.

Why do some large semiprimes take longer to factor?

Pollard's Rho may need several retries to split difficult semiprimes. The tool cycles different seeds automatically, but exceptionally hard cases can still take longer to finish.

What about negative numbers and zero?

Zero has no prime factorization. Negative integers include a factor of −1; e.g., −12 = −1 · 22 · 3.

How are results formatted and sorted?

Prime powers are listed in ascending prime order. The divisor list obeys your maximum limit to keep output manageable.

Related calculators