Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJul 7, 2026 20:43Victor MerckléVictor MerckléError
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:07Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:37014,182,5825,908,000053,248Exit with code 2: SIGSEGV: segmentation violation PC=0x474bfc m=1 sigcode=128 addr=0x0 goroutine 0 gp=0xe4cc08585a0 m=1 mp=0xe4cc087e008 [idle]: runtime.usleep(0x5fb3e80f) runtime/sys_linux_amd64.s:135 +0x3c fp=0xe4cc086df20 sp=0xe4cc086df18 pc=0x474...stderr
2Jul 7, 2026 20:474,57014,407,2032,867,0001,155,0002,146,304stderr
3Jul 7, 2026 20:474,66014,050,7402,918,0001,183,0002,146,304stderr
4Jul 7, 2026 20:474,66312,832,2372,856,0001,248,0002,146,304stderr
5Jul 7, 2026 20:474,66914,229,7182,916,0001,193,0002,146,304stderr
6Jul 7, 2026 20:474,67813,132,2902,526,0001,591,0002,146,304stderr
7Jul 7, 2026 20:474,69814,225,6992,519,0001,616,0002,146,304stderr
8Jul 7, 2026 20:474,71114,035,3122,934,0001,212,0002,150,400stderr
9Jul 7, 2026 20:474,72312,021,5592,855,0001,302,0002,146,304stderr
10Jul 7, 2026 20:474,74714,564,7893,050,0001,128,0002,146,304stderr