Inputs
Before you factor
Difficulty depends on factor size, not just input size. Factoring runs in your browser;
you can stop anytime, and results may be partial.
Any integer, arbitrarily large. Optional leading + or −.
Try
Factorization
n = —
—
- Status
- —
- Elapsed
- —
- Factors found
- —
| Factor | Exponent | Status |
|---|
Unresolved cofactors
How it works
- Trial division removes small prime factors up to a fixed bound.
- Perfect-power detection checks whether what's left is exactly a^k, using exact integer roots.
- Primality testing classifies the remainder — deterministic below roughly 3.3 × 10²⁴, Baillie–PSW above it.
- SQUFOF gets a fast, cheap attempt at moderately sized cofactors.
- Pollard–Brent rho looks for a small-to-medium factor.
- Pollard p−1 and Williams p+1 look for a factor p where p∓1 is smooth.
- The elliptic curve method (ECM) tries increasingly many curves at increasing bounds — effective when a composite has a relatively small factor.
- The self-initializing quadratic sieve (SIQS) handles composites in its size range once ECM hasn't found anything; it suits balanced semiprimes, where ECM has no small factor to find.
- Any factor found is split off and the same pipeline runs again on both pieces.
Methods are chosen automatically. Difficult composites may stay unresolved — Continue factoring resumes with a stronger schedule. Very balanced semiprimes well past this calculator's tested range may remain unresolved regardless.
Algorithm log
| Time | Event |
|---|