Factoring in Polynomial Time Is a Claim, Not a Compute Plan
A credible breakthrough needs a scaling argument, a reproducible factorization, and an architecture that survives the memory and coordination costs.
The circulating post is a rumor, not evidence that a lab has put integer factoring in P. Classical factoring at scale is constrained by GNFS relation collection and memory-heavy sparse linear algebra. A genuine polynomial-time result would need a general algorithm, a proof, and scaling evidence, not just a factor for one number.
Start with the claim, not the compute
A post saying that a lab has “cracked factoring in P” compresses several different claims into one phrase. It could mean a new method factors a particular integer, an AI system found a useful heuristic, a quantum experiment ran a small instance, or a proven algorithm factors arbitrary integers in time polynomial in their bit length. Only the last claim puts general integer factoring in P.
The circulating Reddit post and Hacker News discussion do not, by themselves, establish such a result. A factorization is easy to check: multiply the proposed factors and compare the product with the input. That check establishes one answer, not an algorithm that works efficiently as inputs grow. A finite list of successes cannot distinguish a polynomial-time method from a clever shortcut, hidden precomputation, or a method whose cost rises sharply beyond the tested range.
This distinction matters operationally. If factoring large semiprimes became practical, public-key systems that depend on the difficulty of factoring would need urgent review. But a rumor is not a threat model. Engineering teams should change cryptographic policy based on verifiable evidence and standards guidance, while maintaining crypto-agility so algorithms can be replaced without a fleet-wide redesign.
The classical pipeline is a distributed computation
For large general-purpose inputs, the General Number Field Sieve, or GNFS, is the leading classical method. Its expected running time is subexponential in the input’s bit length, not polynomial. In simplified form, its dominant scaling is L_N[1/3, c], where N is the integer being factored and c is about 1.923. The exact cost depends on the input and implementation, but the key point is that doubling input bits does not merely double the work.
GNFS is not one big loop. Polynomial selection first searches for a useful representation of the number. Relation collection then runs many sieving tasks that find values with suitable smoothness properties. Those tasks parallelize well, so a cluster can add workers and collect relations faster, up to the point where coordination, storage, and the remaining stages dominate.
The collected relations form a large sparse matrix over the binary field. Filtering removes redundant or low-value rows; sparse linear algebra finds dependencies. A final square-root step turns a dependency into factors. That middle section is where a “just add GPUs” pitch often meets the actual machine. Sparse operations can be limited by memory bandwidth and irregular access, not peak arithmetic throughput.
Input integer N
|
v
Polynomial selection
|
v
Sieving workers ------> relation files on local disks
| |
+------ network transfer <-----+
|
v
Filter and deduplicate
|
v
Sparse matrix in distributed memory
|
v
Linear algebra, then square root
|
v
Verify factors by multiplication
The data path has different bottlenecks at each stage. Sieving is compute-heavy and parallel. Relation files are storage and network traffic. Sparse linear algebra places pressure on RAM capacity and bandwidth. A cluster that performs well on the first stage can still stall when it must assemble a matrix too large for a single node.
Memory and coordination are the hidden bill
In production, the first failure mode is often not a slow core. It is the gap between relation production and relation consumption. If sieving workers write faster than the filtering service can read, local disks fill, retries create duplicate work, and the coordinator spends time reconciling state instead of advancing the computation.
A second failure mode is memory pressure in the matrix stage. Sparse matrices avoid storing zeros, but their row and column indexes still take space, and elimination creates fill-in: operations can introduce new nonzero entries. Once the working set exceeds RAM, page faults and remote memory access can turn a bandwidth-bound job into an unpredictable storage-bound one. A nominally fast cluster then shows acceptable average CPU use but poor tail completion times.
Network design matters for the same reason. A relation is useful only after it is validated, serialized, transferred, deduplicated, and made durable enough to survive worker loss. Larger batches reduce per-message overhead but delay visibility and recovery. Smaller batches improve restart granularity but increase metadata and coordination traffic. A reliable design tracks work by deterministic ranges, checksums outputs, and makes retries idempotent.
The table is a planning guide, not a benchmark. Classical timings depend on the exact integer, software, hardware, and implementation. The cloud price assumes $0.05 per vCPU-hour and excludes storage, networking, and engineering time.
| Input or approach | Practical status | Latency and direct compute cost |
|---|---|---|
| 64-bit integer, classical methods | Routine on a commodity machine | Usually under a second; typically less than $0.01 |
| 128-bit semiprime, classical methods | Feasible, but method and input matter | Seconds to hours; cents to dollars in the stated pricing model |
| RSA-2048-sized semiprime, classical GNFS | No known practical general-purpose completion | No defensible time or cost estimate for an ordinary production cluster |
| Shor’s algorithm, fault-tolerant quantum computer | Polynomial-time algorithm, but no relevant machine is available | End-to-end latency and cost are not currently estimable |
What a real breakthrough would have to survive
A serious “factoring in P” announcement should specify the problem precisely. Does it factor arbitrary composite integers, semiprimes, or only a structured family? Is the runtime polynomial in the input bit length, and what are the degree and constants? Does the method require preprocessing, an oracle, or a special distribution of inputs? These are not academic footnotes. They determine whether a result applies to real cryptographic moduli.
Then comes independent testing. Researchers need enough implementation detail to
Discussion (2)
The GNFS relation collection phase reminds me of distributed hash collision searches, where adding workers gives linear speedup until the memory-heavy linear algebra stage becomes the bottleneck. This is classic Amdahl’s Law applied to a subexponential algorithm. Parallelizing one stage doesn’t change the asymptotic complexity.
Exactly, parallelizing the embarrassingly parallel sieving stage just shifts the bottleneck to the sparse linear algebra, which is memory-bandwidth bound and doesn’t scale. It’s an engineering win within the same subexponential curve. The real claim would need to change that underlying complexity, not just throw more hardware at it.