AI news

AI-Assisted GPU Engineering Sets an RSA-896 Factoring Record, Without Breaking RSA-2048

By 新智元1 viewsSource: 新智元
AI-assisted GPU engineering sets an RSA-896 factoring record; this does not mean RSA-2048 has been broken

Steve Weis reports factoring the 270-decimal-digit RSA-896 using idle GPUs and Claude-assisted CADO-NFS changes. Comparing Cognition's RSA-260 effort, the article locates gains in implementation and scheduling. RSA-1024 costs are extrapolations, not a disclosed factoring result.

The 896 in RSA-896 is its binary bit length; the 270 digits mentioned here are decimal digits. This record demonstrates progress in GPU implementation and computational engineering. It does not prove that integer factoring is polynomial-time, nor disclose a factorization of RSA-1024 or RSA-2048. Cost extrapolations depend on hardware, parallel efficiency, and pricing assumptions. Key risks also depend on protocols, implementations, and migration status.

A massive 270-digit number has been split into two primes.

No quantum computer. No national laboratory.

What split it was spare time between routine jobs on Anthropic's cluster, plus Claude.

On September 19, Anthropic security engineer Steve Weis posted RSA-896 and its two prime factors on his personal website.

Article illustration

Steve Weis

The announcement's central statement was that Claude ported CADO-NFS to GPUs.

Article illustration

RSA-896 in full: a 270-digit number and its two 135-digit prime factors, p and q, whose product reconstructs it exactly.

CADO-NFS is open-source software for factoring large integers. French researchers have refined it for nearly 20 years, and it was used to factor RSA-250.

But it has a limitation: it was written for CPUs.

CPUs are like a few versatile master craftspeople; GPUs are like thousands of assembly-line workers. To substitute the workers for the masters, the entire process must be broken down and rewritten.

Claude did that conversion. It then also scheduled the GPU fleet to complete the computation.

According to Weis, the computation used up to 2,048 GPUs over ten days, totaling approximately 30 GPU-years.

Adding a dramatic twist, Weis's doctoral adviser at MIT was Ron Rivest—the famous 'R' in RSA.

In 1977, Rivest, Shamir, and Adleman introduced RSA, making the difficulty of large-integer factoring one of the important security foundations of modern public-key cryptography:

Multiplying two large primes is easy; factoring their product is extraordinarily difficult.

Article illustration

RSA's three inventors together at the CRYPTO conference in August 2017. From left: Rivest, Shamir, and Adleman.

Forty-nine years later, his student brought AI to solve the challenge his teacher had set.

Two records broken in 16 days

The RSA challenge is an open exam paper for cryptographers:

Given a number formed by multiplying two large primes, see who can work backward to factor it.

Multiplication takes a second; working backward might take the world's machines years.

RSA encryption's assurance of security rests on this asymmetric difficulty.

The larger the number that can be factored, the lower the barrier to attacking real-world encryption.

RSA Laboratories launched the challenge in 1991, offering prizes for factorizations. In 2009, the 232-digit RSA-768 was factored.

In February 2020, a joint French–American team factored RSA-250 using CADO-NFS. It ran for months across clusters in France, Germany, and the United States, consuming approximately 2,700 CPU core-years.

Then there was no movement for six years.

Until September 3, 2026, when Cognition's cluster finally produced a result: RSA-260 had been factored.

Article illustration

On September 3, Eric Lu posted only a 130-digit number on X, alongside the words 'divides RSA-260,' meaning the number divides RSA-260 exactly.

With a group of Devin agents, Cognition researcher Eric Lu took approximately three weeks from the first prompt to the answer.

He also said Devin built a new GPU lattice siever for the most compute-intensive step of the factoring process, reducing factoring costs to one-tenth of the previously best publicly reported level.

Sixteen days later came RSA-896.

RSA-896 and RSA-260 differ by more than 600 in their names, but only by ten decimal digits. The former is named for its binary bit length, equivalent to 270 decimal digits.

Do not underestimate those ten digits.

Eric estimates that every additional ten digits increase computation by more than 2.5 times.

Compare the two records: RSA-260 took approximately 13.5 GPU-years. At that multiplier, another ten digits would require more than 30 GPU-years.

A rough extrapolation at that rate means each additional hundred digits would increase computation nearly ten-thousandfold.

RSA-896 once carried a $75,000 prize. But the challenge ended in 2007, so that money has long ceased to be available.

No new mathematics

What exactly did AI do?

The main algorithm for factoring large integers has remained unchanged for decades: the general number field sieve, or GNFS.

It proceeds through polynomial selection, lattice sieving, filtering, linear algebra, and square roots. Lattice sieving is the most compute-intensive step, searching through billions of small tasks for suitable smooth numbers.

CADO-NFS implements all these steps.

The difficulty lies in lattice sieving: it is full of conditional branches and irregular memory accesses, making it awkward to run on GPUs.

All previous public records used CPUs for this step. Whether GPU lattice sieving was worthwhile had remained unsettled.

This time, the economics finally worked. Eric's technical report provides a useful reference for exactly how.

Early on August 13, Eric sent Devin a prompt: write a GPU lattice siever for CADO-NFS and keep iterating until it beats the CPU version.

One sentence in the prompt was telling: the intersection of experts who understand both GPU kernels and number theory has always been small, but now you are in that intersection.

Article illustration

Lu's prompt to Devin: build a fast GPU lattice siever for CADO-NFS as a direct replacement for the original CPU version.

It sounds less like writing a prompt than assigning a task to a top colleague.

Two hours later, he added one more requirement and went to sleep.

Devin iterated on its own for seven hours. By the time he woke up, the GPU sieve was faster than the CPU version.

Over the following week, Devin changed almost the entire pipeline.

But none of this involved new mathematics.

In Eric's words, there was almost no algorithmic progress; it was 'old-fashioned performance engineering.'

Previously, this would have required months of work by an expert team versed in both number theory and GPU kernels.

AI has now lowered that engineering barrier, but the mathematical difficulty has not changed at all.

Humans still steer

Eric counted 233 Devin sessions used for the factorization, 192 of which required his intervention.

He sent 3,328 messages totaling 82,702 English words. On average, he ran three Devins at once, peaking at 18. Only 36 sessions needed no intervention throughout.

What does Devin need humans for?

Setting goals and boundaries; stopping it when it does useless work; reminding it not to leave GPUs waiting for CPUs; and pulling it back when it gives up too early.

Humans also need to establish a consistent measurement benchmark.

The farther the code diverges from upstream CADO-NFS, the more easily AI becomes confused. Humans must first decompose the problem properly before AI can advance it.

Eric compares current agents to a loom: 'I push it forward; it cannot do without me, but I am not throwing the shuttle by hand either.'

He also admits that he understands these components the way an intermediate car enthusiast understands an engine: 'I don't really understand the underlying mathematics.'

Weis, the other record-breaker, has almost the opposite background.

He earned his PhD under Rivest, worked on Google's two-step verification and the open-source cryptographic library Keyczar, and co-founded PrivateCore, which Facebook acquired in 2014. He now works on Anthropic's security frameworks team.

One is an enthusiast without much number-theory expertise; the other is a veteran formally trained in cryptography. Taken together, their examples show AI lowering the exceptionally scarce barrier at the intersection of GPU performance engineering and computational number theory.

Scraps of data-center capacity

The records share another feature: both ran on AI companies' idle compute.

Weis says RSA-896 ran on Anthropic's own cluster without machines being specifically set aside for it.

It was a low-priority job, running only when machines were idle. Working in these gaps, it finished in ten days.

Where did the spare capacity come from? The issue is bin packing.

The NVL72 racks commonly used by AI companies nominally contain 18 machines each.

A scheduler assigning tasks to racks is like packing blocks into boxes: one or two machines often remain idle.

Some jobs reserve a spare machine against failures. Others require an even number of machines, while a rack happens to have only 17 available.

At Cognition, these fragments add up to a few percent of total compute.

Lattice sieving is particularly well suited to filling such gaps.

It can be divided into billions of small tasks. Any idle machine can take one, and being displaced by a regular job is not a problem: computation can resume next time.

Both efforts picked up spare capacity around the data center. RSA-896 used about 30 GPU-years, more than twice RSA-260's total. The larger number consumed more compute.

The most striking point is this:

The scraps left over while an AI company trains models are enough to set a cryptographic record.

Whoever controls a large cluster thus gains another ability to change the rules almost as a side effect.

RSA-1024 risks become more apparent

Is the encryption behind online banking and HTTPS still safe?

This factoring advance has not materially affected RSA-2048, while highlighting RSA-1024's risks further.

Both participants emphasize this point.

Eric estimates that RSA-2048 is approximately a billion times harder than RSA-1024, so this efficiency improvement has almost no effect on it.

RSA-1024 is the one singled out. Steve Weis writes in his announcement:

This work indicates that many parties with data-center-scale GPU clusters can threaten RSA-1024.

Article illustration

Weis draws three lines in his announcement: the algorithm has not become faster, RSA-2048 remains secure, and RSA-1024 is no longer secure.

Extrapolating computation requirements, RSA-1024 requires only about 78 times as much work as RSA-260, costing approximately $30 million at market prices.

Eric also says that halving the cost through further engineering improvements would not be surprising.

To be clear, no one has publicly factored a 1,024-bit RSA key to date. Relevant standards have long pushed the retirement of 1,024-bit RSA for new security protection, but legacy systems may still use it. It is incorrect to say the entire world had abandoned it by 2013.

Real legacy systems do not change so quickly.

The team that factored RSA-250 noted in a paper that an off-the-shelf network switch they bought in 2018 shipped with a default SSH key of only 768 bits.

That is also why regularly setting new computation records matters: it provides the world with the most concrete yardstick for key lengths.

The mathematics has not changed

The threshold for computation has

In 1977, Rivest staked RSA's security on the difficulty of factoring large numbers.

Forty-nine years later, that mathematical judgment remains unchanged.

What has changed is the number of experts, people, and amount of time required to organize a large computation.

Previously, a team versed in both number theory and GPUs had to work for months, then mobilize research clusters in three countries to calculate together.

Now, one person, one AI, and a slice of spare data-center capacity are enough.

But that spare capacity belongs only to AI companies already holding large clusters.

Factoring RSA is not their first record-breaking foray into another field.

Mathematical conjectures, Millennium Prize Problems, cryptographic records—AI companies are successively rewriting one human frontier after another.

The next record may again come from an AI company's side project.

RSA's security boundary is changing along with it.

References:

https://cognition.com/blog/factoring-rsa-260

https://saweis.net/posts/rsa-896.html

https://x.com/penlume/status/2095372672356212876

This article is from the WeChat account 'Xinzhiyuan,' by Xinzhiyuan.

Related topics

After reading

Join the AINRK community

Read how to join the community and connect with people working in AI.

Community information (opens in a new tab)