Guldo

Competition

Counted factoring round

The first public round: factoring, scored by counted Python instructions.

Open now · 21 November 2026, 16:06 UTC to 5 December 2026, 23:59 UTC

Status

StatusOpens (UTC)Closes (UTC)
Open now21 November 2026, 16:06 UTC5 December 2026, 23:59 UTC
Open now. Follow the steps below, or use the form on the round page.

This status updates from the public ledger when your browser can reach it, and otherwise shows what was true when the page was built. The listed times are the plan: each round is opened by hand once its seed commitments are public, so a round may open a little after its listed time.

The task

You write one Python function, solve(n), that returns a nontrivial divisor of a number n that is the product of two primes. Nothing is timed. Instead, the judge counts the exact number of Python bytecode instructions your function executes (“steps”), so anyone can re-run an entry and get the same number. A baseline that uses trial division is counted on the same questions, and your result is your speedup over it, in bits: 1 bit means half the steps, 3 bits means one eighth. The credit is a cautious lower bound, so a small gain may come back “inconclusive”. That is a statement about statistics, not about your code.

Settings, from the public record

SettingValue
Problem sizes (bits of n)38, 40, 42, 44
Questions per size12
Cap per question40,000,000 counted steps
Secret seeds3, their hashes published before the round opened (listed below)
Submissionsat most 20 in total and 3 per handle
Sourcepublished after the deadline
Python used for the official countscpython 3.14.4
Baselinesolvers/factor_trial_py.py (trial division)

The three seed commitments

These hashes were published when the round opened. The seeds they commit to are revealed after the evaluation, so nobody can tune a solver to the questions.

  • 075ec240b83f2574cadce0ebe8cc4fd402167ea50bedcd9b30e0b6affc8ac1ff
  • 53692d2cfb52f6e9e8abb33537f99178b87aa32ee3cc369f54d4759d5fa90772
  • a5792d71b93e955a7ada1f032de57709f46a1332fa7f803453bbd3a26621c072

Head of the public log when this page was built:0a2aac987cedcda23d8f039ce8227518f548bb70c34f389d6b963cb6bc83c141

What is accepted

Approaches

Any algorithm in pure Python. These are the usual candidates:

ApproachNotes in this round
Trial division and its refinementsThe baseline is the plain loop. Skipping multiples of small primes (a wheel) is a small, safe gain.
Pollard's rho (Floyd, Brent)The usual first improvement. Your solver must be deterministic, so derive the starting value from n by a fixed rule, never from random or the clock.
Pollard's p-1Works when one prime factor minus one has only small prime factors. Each prime here is about 19 to 22 bits, so it is cheap to try.
Fermat and LehmanSuited to factors that are close together.
One-line factoring and SQUFOFMethods designed for numbers of roughly this size.
Elliptic-curve and sieve methodsAllowed. Whether they pay off at 38 to 44 bits in pure Python is for entrants to find out.
Anything else that returns a nontrivial divisorThe round only checks the answer and counts the steps.

Rules for your solver

  • One file, pure Python. The only imports allowed are math, itertools, heapq, bisect, functools, collections, fractions. No numpy, gmpy2, sympy or other C libraries.
  • No files, no sys or os, no eval or exec, and no attempt to reach the counter or the questions.
  • Deterministic: the same n must always cost the same number of steps.
  • The step counter accepts only a restricted subset of Python. If guldo counted check rejects something, rewrite it: that command is the ground truth.

Play fair with the counter

Steps are Python bytecode instructions, so work done inside a single built-in call, such as pow(a, b, n) or math.gcd, is cheap in steps. That is part of the stated rules, but the goal is a real algorithmic improvement, not a loophole in the counter.

How to enter

You need a Mac or Linux computer, Python 3.12 or newer for the step-counting check, and about twenty minutes for a first submission. No account is needed. Choose a handle of 2 to 32 letters, digits, dots, underscores or hyphens. Submitting publishes your source after the deadline. The command prints a token once; keep it, because it is the only way to submit again under your handle.

python3 -m venv guldo-env && source guldo-env/bin/activate && pip install guldo-cli
guldo lint my_solver.py --family factor
guldo counted check my_solver.py --family factor --dim 38
guldo submit my_solver.py --server https://submit.guldo.org --round factor-1 --handle YOURHANDLE --accept-rules --publish-source

You can also submit with the form at the bottom of the round page. After the deadline, this command checks your own result against the public log and the revealed seeds:

guldo verify --server https://submit.guldo.org --round factor-1 --id YOUR_SUBMISSION_ID

What this does and does not show

A certificate shows that, on questions fixed before the round and with costs anyone can recompute, your solver needed fewer steps than the baseline. It measures Python bytecode steps, not seconds on a real machine, and it cannot see work done inside built-in C functions. This is the first public round of a young system. The submission service and the step-counting sandbox have been tested, but not yet in a real competition, and the counted evaluation runs on the competition's own server without operating-system isolation. The Limits page has the full list.