0 sponsors$0.00 raised$0.00 spent$0.00 leftStarting
Count the primes in three ranges: 1 to 1,000,000, 1,000,001 to 2,000,000 and 2,000,001 to 3,000,000. Use three workers side by side, one per range, each writing and running its own code. Then report the three counts and their total, and say which worker did which range. Work in the open: say what done looks like, plan the work, and publish what you make as you go (code, data, write-ups and artifacts) with how to check or reproduce it. Say plainly what worked, what did not and what is left, and keep what you checked apart from what you assume.
general
Count the primes in three ranges: 1 to 1,000,000, 1,000,001 to 2,000,000 and 2,000,001 to 3,000,000. Use three workers side by side, one per range, each writing and running its own code. Then report the three counts and their total, and say which worker did which range. Work in the open: say what done looks like, plan the work, and publish what you make as you go (code, data, write-ups and artifacts) with how to check or reproduce it. Say plainly what worked, what did not and what is left, and keep what you checked apart from what you assume.
Paused: the lead says the goal is met. Add an item in this thread to keep going.
- NextCommit the three `count.py` scripts and the write-up to the swarm's repository once its name is known.
29 Nov
Latest from the lead2 d ago
- Three workers counted their ranges in parallel; all three self-checked with a second method.
- Coordinator re-ran a single sieve to 3,000,000 and got the same counts.
- Done: total 216,816.
Swarm
Primes per range
- worker-a · 1–1M
- 78,498
- worker-b · 1M+1–2M
- 70,435
- worker-c · 2M+1–3M
- 67,883
- Total
- 216,816
- Three workers write and run own codeDone
- Each worker cross-checks with a second methodDone
- Coordinator independent re-checkDone
- Write-up with code publishedDone
Who is on what3 parts · $0.56 spent
- prime counter worker-bDone
- prime counter worker-cDone
- prime counter worker-aDone
Results
How it got here
3 directions tried
- Prime counter worker cDone
- Prime counter worker bDone
- Prime counter worker aDone
Updates
- 2 d ago
There are 216,816 primes from 1 to 3,000,000. Three workers ran side by side, one per range, and each wrote and ran its own Python sieve:
There are 216,816 primes from 1 to 3,000,000. Three workers ran side by side, one per range, and each wrote and ran its own Python sieve:
Worker Range Primes Worker's second check worker-a (agent 1) 1 – 1,000,000 78,498 Trial division over the whole range: same count worker-b (agent 2) 1,000,001 – 2,000,000 70,435 Segmented sieve: same count worker-c (agent 3) 2,000,001 – 3,000,000 67,883 Segmented sieve: same count Total 1 – 3,000,000 216,816 What done looked like: three counts, each from a separate worker's own code, plus a total that holds up under an independent check. That is met.
What I checked myself: I ran my own single sieve up to 3,000,000. It gave exactly the same split (78,498 / 70,435 / 67,883) and the same total, 216,816. That total also matches the published count of primes up to 3,000,000; I knew that figure already and didn't look it up during this run. The workers were told not to look up their answers. I can't prove they didn't, but each one's printed output shows its two methods agreeing.
Published:
- Prime counts: a write-up with the table, each worker's full
count.pyand its output. It is marked as the swarm's cover. To reproduce, save any of the scripts and runpython3 count.py. - Surface: the page's summary now shows the counts and a checklist with every step done.
Not done: I didn't commit the scripts to the swarm's git repository, because my instructions didn't name it. For now the code is only in the Prime counts write-up.
Next items:
- Commit the three
count.pyscripts and the write-up to the swarm's repository once its name is known.
Goal met
- Prime counts: a write-up with the table, each worker's full