AI agents help factor 260-digit RSA-260 on GPUs, Cognition says
In short
- Cognition, the maker of the Devin coding agent, says Eric Lu used Devin agents to factor RSA-260, a 260-digit (862-bit) number from the RSA Factoring Challenge. Factoring means finding the two prime numbers that multiply to give it. It is the largest challenge number publicly solved; the previous record, RSA-250, dates from February 2020.
- The agents wrote a GPU version of the lattice siever (the step that does most of the work) inside CADO-NFS, an open-source factoring program. Lu says there is no new algorithm. The estimated cost is about 4,900 GPU-days, about $400,000 at market prices, on spare capacity in Cognition's own cluster.
- Lu's own estimate is that RSA-1024 would cost about $30 million. RSA-2048, the size in use today, is "roughly a billion times harder" than RSA-1024 and "does not appear to be meaningfully affected".
- This is the company's own report. Cognition posted the factors; we multiplied them and they give the 260-digit number, but nobody outside the company is quoted confirming how it was done or what it cost.
260 digits RSA-260, 862 bits; About 4,900 GPU-days, Lu's estimate; About $400,000 at market GPU prices; About $30 million Lu's estimate for RSA-1024; 3 weeks from first prompt to factors
What is RSA-260 and the RSA Factoring Challenge?
RSA is a way of protecting data in which anyone can see a public number, the product of two large secret primes, but only the holder of the primes can unlock the data. Its safety rests on the fact that multiplying two primes is easy while splitting the product back is very hard. The RSA Factoring Challenge is a list of such products. Solving the biggest one anyone can publicly solve is a yardstick for how close the attack is to real keys. Lu's post says current RSA keys use 2048-bit numbers (about 617 digits), while 1024-bit RSA (about 309 digits) was deprecated in 2013.
The post lists the result as:
Our check: we multiplied the two factors printed in the post with Python integer arithmetic. The product equals the 260-digit number, which is 862 bits long. This confirms the arithmetic only. It does not show who computed them or how.
How was it factored?
The method is the general number field sieve (GNFS), the best known algorithm for numbers over about 100 digits and the one used for earlier records. It runs in stages:
- Polynomial selection picks the mathematical setup that makes the next step faster.
- Lattice sieving hunts for enormous numbers of relations between small primes. Lu says this run needed 8.3 billion of them. It is the most expensive stage and splits into independent small jobs, which suits spare capacity that can be interrupted at any time.
- Linear algebra solves a huge system built from those relations. The post gives a matrix of about 656 million rows and columns with about 98 billion non-zero entries.
- Square root turns the solution into the two factors.
Every earlier public record used CPUs for the sieve. The post says it was long unclear that a GPU could do it more cost-effectively, because the sieve needs many scattered memory reads and writes and a lot of branching. Lu says Devin cracked that with "good old performance engineering", and that the work was a significantly modified CADO-NFS, not a new method.
What did the agents do, and what did the human do?
Lu started a Devin on 13 August with a prompt asking for a drop-in GPU replacement for CADO-NFS's CPU siever, and went to bed. Per the post, after another 7 hours of iteration (Lu had added, two hours in, that it must handle the RSA-250 parameters) the agent had succeeded. Over the next week the agents tuned sieving and then the rest of the pipeline: GPU polynomial selection, a block Wiedemann linear-algebra solver, deduplication tools and the square-root step.
Lu is clear that the agents were not fully autonomous. Lu supplied priorities, caught dead ends, and built a shared set of benchmarks, and says only a general understanding of the components: "I do not understand much of the underlying mathematics". Lu also credits CADO-NFS for giving the agents a reference implementation and a split into stages whose outputs could be compared, and notes that the further the code drifted from upstream CADO-NFS, the more confused the agents became.
What did it cost?
At the post's assumed $3.50 per GPU-hour, that is about $414,000, which the post rounds to $400,000. The run used spare nodes in Cognition's GPU racks (idle nodes left over when jobs are packed into racks), a single-digit percentage of the cluster, so Lu says there was no marginal cost. The factors were found on 3 September 2026. Before the final run, the agents factored smaller test numbers of 155 to 344 digits, including a 344-digit number of special form used as a correctness check.
Does this threaten real encryption?
Lu's answer is mostly no. By standard GNFS scaling the post says RSA-1024 needs about 78 times the computation of RSA-260, hence the estimated $30 million, and Lu thinks another factor of two saving is plausible. RSA-1024 is already treated as insecure; the post notes that suspicion that the NSA could do it economically goes back to the mid-2000s. What Lu says is new is a possibly lower cost, possibly more parties able to do it with rented GPUs instead of special hardware, and non-cryptographers being able to speed up factoring.
For RSA-2048, the appendix estimate is about 1.2 trillion GPU-years, which is why Lu says the result does not move it. The post also says that talk of guessing 130-digit primes by hand is wrong and that Cognition has not built a quantum computer.
Costs for RSA-1024 and RSA-2048 are Lu's extrapolations from one run, not measurements. The post gives no independent review of the GPU-day figures, and the CPU comparison in its appendix is also an estimate ("10x lower cost than the previous public state of the art" is Lu's claim).
Terms in plain English
- GPU lattice siever: a program that runs on graphics processors and finds relations between small primes; the most expensive step of GNFS. (Ours: plain wording.)
- GPU-day: one GPU running for one day.
- CADO-NFS: open-source factoring software used in earlier records.
- Devin: Cognition's AI software-engineering agent.
Where things stand
The post ends with Lu's view that the barrier to computational mathematics is "far lower than it used to be", with concern about losing human understanding. We saw no outside replication or reaction in the sources we read. We did not check later pages for any change.
Sources
- Factoring RSA-260, Cognition blog (Eric Lu), 9 September 2026
Sources
Related stories
- AWS makes EC2 servers with 72 NVIDIA Rubin GPUs generally available
- Autonomous launches Computer AMD, a home AI server for 1-4 GPUs
- Belfort releases Bel-0, a chatbot that works on encrypted prompts
- AI agent JARVIS builds and tests a circuit board, preprint says
- NVIDIA announces Rubin HPC, a GPU for scientific simulation
- Strap-on robot takes standard liver ultrasound views by itself
More from Vulnerability Research
- A remote Spectre attack leaked a secret from Cloudflare Workers
- A 60-second implant intercepts a 737's cockpit data in lab test
- NeuralHash gives different faces the same hash, a study finds
- docker cp flaw lets a container write files onto the host
- A symlink trick beats six AI coding assistants, Wiz says