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 2, 2026 05:41Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 05:44012,198,4314,166,00002,117,632expected "51460072141720 ", got "51460102163849 "stderr
2Jul 2, 2026 05:444,61511,826,7874,062,00002,117,632stderr
3Jul 2, 2026 05:444,63611,888,1134,080,00002,117,632stderr
4Jul 2, 2026 05:444,74711,880,4294,178,00002,117,632stderr
5Jul 2, 2026 05:444,80511,923,9094,229,00002,117,632stderr
6Jul 2, 2026 05:444,85611,963,9844,274,00002,117,632stderr
7Jul 2, 2026 05:444,86411,973,7024,281,00002,117,632stderr
8Jul 2, 2026 05:444,93712,081,0244,345,00002,117,632stderr
9Jul 2, 2026 05:444,99712,115,7044,398,00002,117,632stderr