Skip to content
DAH
Wiki/CryptographyAlgorithmActive

The general number field sieve and RSA factoring records

The fastest known classical algorithm for factoring large integers, implemented in CADO-NFS; public RSA challenge factorisations measure its real cost and set RSA key-size policy.

On this page16 sections
Why other work relies on it

Every recommendation for RSA and finite-field Diffie-Hellman key sizes extrapolates the cost of the number field sieve from record computations such as RSA-250, RSA-260 and RSA-896.

The fastest known method for splitting a huge number into its prime factors, and the records that set RSA key sizes.

  1. 1Pick polynomials sharing a root
  2. 2Sieve for billions of smooth relations
  3. 3Combine relations into perfect squares
  4. 4A gcd reveals a prime factor

Why it matters. RSA encryption and signatures publish a number N=pqN = pq, the product of two secret primes of similar size. Multiplying pp and qq is instant; recovering them from NN is believed to be very hard when NN 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 NN by every number up to N\sqrt N works for small NN but needs about 1013510^{135} divisions for a 270-digit number. GNFS instead builds a congruence of squares: two numbers xx and yy with x2−y2x^2 - y^2 a multiple of NN, i.e. x2≡y2(modN)x^2 \equiv y^2 \pmod N in clock arithmetic that wraps at NN. Then NN divides (x−y)(x+y)(x-y)(x+y), and computing the greatest common divisor gcd⁡(x−y,N)\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 NN; good choices make all later numbers smaller.
  2. Sieving: search many pairs (a,b)(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 xx and yy and take the gcd.

Cost. The running time grows like exp⁡(1.923 (ln⁡N)1/3(ln⁡ln⁡N)2/3)\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 NN.

Go deeper

The full technical text.

What it does

RSA is secure only if the public modulus N=pqN=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

LN[13, (64/9)1/3]=exp⁡ ⁣((1.923+o(1))(ln⁡N)1/3(ln⁡ln⁡N)2/3),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).

The four stages

  1. Polynomial selection. Choose two polynomials with a common root modulo NN, 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)(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 x2≡y2(modN)x^2\equiv y^2 \pmod N, and gcd⁡(x−y,N)\gcd(x-y,N) reveals a factor with probability about one half.

Records and what they measure

The 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 matter

A 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 LN[1/3]L_N[1/3] formula. A factorisation is trivially checkable: multiply the two primes and compare.

Limits

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

Words on this page (8)
Words on this page
semiprime
A number that is the product of exactly two primes, like the RSA moduli.
RSA
A public-key system whose security rests on the difficulty of factoring a large semiprime N = pq.
congruence of squares
Two numbers x, y with x² − y² divisible by N; then gcd(x − y, N) often reveals a factor.
greatest common divisor
The largest number dividing two integers; Euclid's algorithm computes it quickly even for huge numbers.
smooth number
An integer whose prime factors are all below a chosen bound; sieving searches for these.
general number field sieve
The fastest known classical algorithm for factoring integers with more than about 100 digits.
modular arithmetic
Arithmetic that wraps around at a fixed number, like a clock.
CADO-NFS
An open-source implementation of the number field sieve used for recent RSA records.
New to this? Read first (4)
New to this? Read first

Understanding map

map of the whole wiki →

What to read before The general number field sieve and RSA factoring records (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then

Open problems & questions

Progress timeline

  1. Sep 19, 2026
    RSA-896 factored
    Related to: Factor RSA-280 (928 bits), the next RSA challenge number above the RSA-896 record

    Stephen A. Weis, with assistance from Claude, factored the 896-bit RSA-896 (about 30 H100 GPU-years over 10 days).

    source
  2. Sep 19, 2026
    RSA-896 factored

    Stephen A. Weis, with assistance from Claude, factored the 896-bit RSA-896 on up to 2,048 H100 GPUs, about 30 GPU-years over 10 days.

    source
  3. Sep 3, 2026
    RSA-260 factored

    Eric Lu at Cognition factored the 862-bit RSA-260 with a GPU-accelerated CADO-NFS, about 4,900 GPU-days.

    source
  4. Sep 3, 2026
    RSA-260 factored
    Related to: Factor RSA-280 (928 bits), the next RSA challenge number above the RSA-896 record

    Eric Lu at Cognition factored the 862-bit RSA-260 with a GPU-accelerated CADO-NFS (about 4,900 GPU-days).

    source
  5. Feb 28, 2020
    RSA-250 factored

    Boudot, Gaudry, Guillevic, Heninger, Thomé and Zimmermann factored the 829-bit RSA-250 with CADO-NFS.

    source
  6. Dec 12, 2009
    RSA-768 factored

    Kleinjung and co-authors factored the 232-digit RSA-768 with the number field sieve after about two years of computation.

    source
  7. Jan 1, 1993
    The number field sieve book

    Lenstra and Lenstra edited the collected papers that define the number field sieve; year only.

    source