Idle Cloud Capacity Breaks a 270-Digit Number in Ten Days

    This article examines how fragmented idle cloud capacity and an AI coding tool were combined to factor a 270-digit number into two 135-digit primes in ten days. It explains why large-integer factorization is hard, why porting an existing Number Field Sieve implementation to GPUs matters more than rewriting it, and how to structure human-AI collaboration, checkpointing, and observability so long-running jobs survive preemption. Readers will find a reusable methodology for turning spare heterogeneous resources into dependable compute.

    1. What Happened: High-Value Use of “Leftover” Compute

    A 270-digit decimal number was successfully factored into the product of two 135-digit primes. What makes this notable is not the result itself but where the compute came from: no quantum computer, no dedicated national laboratory, and no hardware purchased specifically for the task. What was actually used was the idle time that naturally leaks between routine jobs on a cloud provider’s cluster, together with an AI coding tool capable of understanding and rewriting code.

    Public information shows the lead has long worked in cryptography and security engineering, and studied under a foundational figure in cryptography at a university. He published the factorization on his personal site and described how the toolchain split the work: the AI coding tool’s core job was to port an open-source large-number factorization implementation from general-purpose processors to graphics processors, so the accelerators could genuinely take part in the sieving and post-sieving stages instead of sitting underutilized.

    For developers, the value of this case is not “what record was broken” but that it demonstrates a complete path: aggregating the fragmented time inside a large heterogeneous cluster, through sensible task partitioning and checkpoint-based resume, into a sustained multi-day computation.

    2. The Technical Foundation: Why Large-Number Factorization Is Hard

    To understand the difficulty, start with the security assumption behind public-key cryptography. RSA-style schemes rest on the empirical judgment that factoring large integers is computationally infeasible: multiplying two large primes is extremely cheap, but recovering the factors from the product becomes super-polynomially more expensive as the digit count grows.

    The most effective known general-purpose integer factorization algorithm is the Number Field Sieve (NFS) and its variants. It skips the naive trial-division approach and instead collects a large volume of smooth relations, then uses linear algebra to obtain a congruence of squares, from which a non-trivial factor is extracted. Its complexity is usually written in sub-exponential form:

    1. L_n[1/3, c] = exp( (c + o(1)) · (ln n)^(1/3) · (ln ln n)^(2/3) )

    This expression says two things. First, adding a few dozen digits does not raise the cost linearly. Second, the constant factor c is tightly coupled to implementation quality: on identical hardware, engineering optimization can yield several-fold or even an order-of-magnitude difference. That is precisely why porting an implementation to accelerators is worth the investment.

    3. The Key Move: Port, Don’t Rewrite

    In this case the tool performed a port rather than a from-scratch rewrite, and that choice was critical.

    The main NFS pipeline breaks into four stages: polynomial selection, sieving, linear algebra, and square root. Sieving has simple control flow, good data locality, and very high parallelism, making it naturally suited to large-scale accelerators. Polynomial selection depends more on heuristic search, while linear algebra is constrained by memory capacity and interconnect bandwidth, so both usually stay on general-purpose processors with high-performance interconnects.

    The sensible engineering approach is therefore layered: hand throughput-oriented workloads like sieving to the accelerator, keep latency-sensitive and memory-intensive stages on general-purpose processors, and connect them through clearly defined data formats. A schematic task description looks like this:

    1. stage: sieving
    2. target:
    3. accelerator: gpu
    4. batch_size: 4096 # candidate relations processed per batch
    5. checkpoint_every: 30m # periodic flush to storage, supports resume after interruption
    6. fallback:
    7. on_failure: retry_with_smaller_batch
    8. max_attempts: 5
    9. output:
    10. sink: object_storage # relation files written to object storage
    11. format: binary_relation

    Three things really decide success here: batch granularity, checkpoint frequency, and failure fallback policy. Batches that are too small let scheduling overhead eat the gains; batches that are too large lose too much work on interruption. Checkpoints that are too sparse make long jobs unable to tolerate preemption; checkpoints that are too dense turn I/O into the bottleneck.

    4. A Human-AI Collaboration Pattern: Treat the Model as a Senior Executor, Not a Decision-Maker

    Four recurring actions in this case form a transferable collaboration pattern:

    • Set the goal and draw the boundaries: define inputs, outputs, acceptance criteria, and out-of-scope areas so the executor does not widen the change surface on its own.
    • Spot and stop wasted effort: interrupt and redirect when you see repeated compilation, endless tweaking of irrelevant parameters, or changes piling up in the wrong direction.
    • Remove pipeline bubbles: explicitly require that the accelerator never waits on the general-purpose processor, overlapping data preparation and preprocessing with computation and filling gaps via async pipelines and prefetching.
    • Push back on premature surrender: when compilation fails or precision does not match, require continued root-cause investigation instead of downgrading to “cannot be done.”

    The essence of this pattern is to leave the highest-uncertainty part (judging direction) to the human and hand the deterministic, verifiable, repeatable parts (editing code, running benchmarks, reading logs) to the tool. In engineering terms, pair it with a minimal verification loop:

    1. def verify(kernel, cases):
    2. for inp, expected in cases:
    3. got = kernel(inp)
    4. if not close(got, expected, rtol=1e-6):
    5. raise ChecksumMismatch(inp, got, expected)
    6. return True
    7. # after each port, run a small-scale benchmark first, then scale up to the full workload
    8. assert verify(new_kernel, small_cases)

    Small before large, correct before fast: for long-running jobs like this, it is the only reliable way to proceed.

    5. The Compute Reality: Making Idle Resources Usable

    The biggest enemy of fragmented compute is not performance but preemptibility. To keep a long job alive in an environment where it can be reclaimed at any moment, you need several layers of protection:

    1. Idempotence and re-entrancy: each compute unit’s output depends only on its input shard, so repeated execution produces no side effects.
    2. Fine-grained checkpoints: state is flushed to object storage, and a reclaimed job resumes from the latest checkpoint rather than starting over.
    3. Queue and priority separation: put interruptible throughput workloads and non-interruptible critical stages in separate queues so they do not crowd each other out.
    4. End-to-end observability: use logging and monitoring with alerts to track throughput, failure rate, and queue time, automatically reducing batch size and retrying on anomalies.
    5. Cost guardrails: set budget and quota limits to prevent abnormal retries from inflating consumption.

    On the cloud, these capabilities typically map to generic categories: a container platform handles elastic scaling and scheduling, object storage holds checkpoints and intermediate results, a message queue distributes tasks, logging and monitoring provide observability, and key and access management preserve data boundaries.

    6. A Reusable Methodology Checklist

    • Profile before optimizing: use benchmarks to locate the real hot stage and avoid investing in secondary ones.
    • Let heterogeneous resources do what they are best at: throughput workloads on accelerators, memory- and communication-intensive workloads on general-purpose processors.
    • Design for interruption as the norm: assume any task longer than a few minutes will be preempted.
    • Replace trust with verification: after a port, regress against small cases with known answers, then scale up gradually.
    • Write the human-AI split into the process: humans set goals and acceptance criteria, the tool executes implementation and verification, and humans own course correction.

    7. Boundaries and Caveats

    This kind of work belongs to cryptographic parameter evaluation and algorithm engineering research. Its value lies in checking whether key-length choices remain safe and in pushing implementation efficiency forward; it should not be used for any unauthorized cracking. For most teams, the more realistic takeaway is the methodology: how to organize idle resources into dependable compute, how to get an AI coding tool to produce verifiable code within clear boundaries, and how to use checkpoints and observability to turn long-running jobs into an operable routine process.