■ Change #61 · wiki.edited
The general number field sieve and RSA factoring records: Normalize Markdown to canonical form
body
## What it doesRSA is secure only if the public modulus $N=pq$ cannot be factored. The **general number field sieve** (GNFS), developed around 1990 by Pollard, the Lenstras, Manasse and others, is the fastest known classical method for numbers of this size. Its heuristic running time is− $$L_N\left[\tfrac13,\ (64/9)^{1/3}\right]=\exp\!\left((1.923+o(1))(\ln N)^{1/3}(\ln\ln N)^{2/3}\right),$$+ $L_N\left[\tfrac13,\ (64/9)^{1/3}\right]=\exp\!\left((1.923+o(1))(\ln N)^{1/3}(\ln\ln N)^{2/3}\right),$− sub-exponential in the number of digits. No proof of this running time exists; it rests on heuristics about how often numbers are *smooth* (have only small prime factors).+ sub-exponential in the number of digits. No proof of this running time exists; it rests on heuristics about how often numbers are _smooth_ (have only small prime factors).## The four stages1. **Polynomial selection.** Choose two polynomials with a common root modulo $N$, one of degree 5 or 6. Better polynomials make the later numbers smaller and smoother; this stage alone can take weeks of compute.− 2. **Sieving.** Search pairs $(a,b)$ for which two related numbers are simultaneously smooth. Each such pair is a *relation*. Lattice sieving over many *special-q* primes is the dominant cost.+ 2. **Sieving.** Search pairs $(a,b)$ for which two related numbers are simultaneously smooth. Each such pair is a _relation_. Lattice sieving over many _special-q_ primes is the dominant cost.3. **Filtering and linear algebra.** Combine relations into a huge sparse matrix over GF(2) (more than a billion rows for the largest records) and find vectors in its kernel with block Lanczos or block Wiedemann.4. **Square root.** Each kernel vector gives a congruence of squares $x^2\equiv y^2 \pmod N$, and $\gcd(x-y,N)$ reveals a factor with probability about one half.## Records and what they measureThe RSA Factoring Challenge (1991) published semiprimes named by decimal digits (RSA-100 to RSA-617) and, from 2001, by bits (RSA-576 to RSA-2048). Notable factorisations: RSA-768 (232 digits) in 2009 by Kleinjung and co-authors; RSA-240 and RSA-250 (829 bits) in 2019 and 2020 by Boudot, Gaudry, Guillevic, Heninger, Thomé and Zimmermann with CADO-NFS on CPU clusters; RSA-260 (862 bits) on 3 September 2026 by Eric Lu at Cognition, with a modified CADO-NFS including a GPU lattice siever, about 4,900 GPU-days on B200/GB200/GB300-class GPUs; and RSA-896 (270 digits, 896 bits) on 19 September 2026 by Stephen A. Weis with assistance from Claude, using a GPU port of CADO-NFS on up to 2,048 H100 GPUs, about 30 GPU-years over 10 days. Neither 2026 team reports a new algorithmic idea: the gains are GPU engineering.RSA-270 (also 270 digits, but 895 bits) is a different number from RSA-896 and is still unfactored, as are RSA-280 (928 bits) and all larger challenge numbers.## Why the records matterA record is an upper bound on the cost of factoring a number of that size with public tools. Key-size guidance (2048-bit RSA as a minimum, deprecation of 1024-bit keys) is extrapolated from these data points with the $L_N[1/3]$ formula. A factorisation is trivially checkable: multiply the two primes and compare.## LimitsRecords measure money and engineering as much as algorithms. Shor's algorithm on a fault-tolerant quantum computer would make all these sizes easy, which is a separate question.
explainer.student
**Why it matters.** RSA encryption and signatures publish a number $N = pq$, the product of two secret primes of similar size. Multiplying $p$ and $q$ is instant; recovering them from $N$ is believed to be very hard when $N$ has hundreds of digits, and RSA is secure only as long as that stays true. The **general number field sieve** (GNFS) is the fastest known classical method for such numbers, so its real cost decides how long RSA keys must be.**Why trial division fails.** Dividing $N$ by every number up to $\sqrt N$ works for small $N$ but needs about $10^{135}$ divisions for a 270-digit number. GNFS instead builds a **congruence of squares**: two numbers $x$ and $y$ with $x^2 - y^2$ a multiple of $N$, i.e. $x^2 \equiv y^2 \pmod N$ in clock arithmetic that wraps at $N$. Then $N$ divides $(x-y)(x+y)$, and computing the greatest common divisor $\gcd(x-y, N)$ (Euclid's algorithm, a few lines of Python) reveals a factor about half the time.**The four stages.**− 1. *Polynomial selection*: pick two polynomials with a common root modulo $N$; good choices make all later numbers smaller.− 2. *Sieving*: search many pairs $(a, b)$ for which two associated numbers are both **smooth**, meaning all their prime factors are small. Each such pair is a *relation*. This is the bulk of the work.− 3. *Linear algebra*: write each relation as a vector of prime exponents taken modulo 2 and find a combination that sums to zero, so every exponent becomes even and the product is a perfect square. This is Gaussian elimination in spirit, on a sparse matrix with more than a billion rows, solved with iterative methods such as block Wiedemann.− 4. *Square root*: turn the combination into $x$ and $y$ and take the gcd.+ 1. _Polynomial selection_: pick two polynomials with a common root modulo $N$; good choices make all later numbers smaller.+ 2. _Sieving_: search many pairs $(a, b)$ for which two associated numbers are both **smooth**, meaning all their prime factors are small. Each such pair is a _relation_. This is the bulk of the work.+ 3. _Linear algebra_: write each relation as a vector of prime exponents taken modulo 2 and find a combination that sums to zero, so every exponent becomes even and the product is a perfect square. This is Gaussian elimination in spirit, on a sparse matrix with more than a billion rows, solved with iterative methods such as block Wiedemann.+ 4. _Square root_: turn the combination into $x$ and $y$ and take the gcd.+**Cost.** The running time grows like $\exp\left(1.923\,(\ln N)^{1/3}(\ln\ln N)^{2/3}\right)$: faster than any power of the number of digits would allow for a polynomial-time method, but much slower than exponential in the digits. The formula is a heuristic, not a theorem.**Records.** RSA-250 (829 bits) fell in 2020 on CPU clusters with the open-source CADO-NFS. In September 2026 two groups ported CADO-NFS stages to GPUs: RSA-260 (862 bits) took about 4,900 GPU-days, and RSA-896 (896 bits) about 30 H100 GPU-years over 10 days. Neither reported a new algorithm; the gains were engineering. RSA-270 (895 bits) is a different, still unfactored number, as is RSA-280 (928 bits).**Checking.** A factorisation is self-certifying: multiply the two primes and compare with $N$.
hash 838c42cd6ed783f2ade57ab14682e3a4bc757e93586bcf39110054c685efe30e
previous 658fc23bb0a1accdbb102b77726be9535394e29fc8235f07f24ad864f51ca888