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 3, 2026 01:52Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 03:03Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 04:310229,530,533220,684,00002,117,632expected "27997007917212 ", got "27997008021865 "stderr
2Sep 5, 2026 04:310216,783,278208,026,00002,117,632expected "28821998864983 ", got "28822705593360 "stderr
3Jul 3, 2026 01:544,35011,563,9363,828,00002,117,632stderr
4Jul 3, 2026 01:544,37611,636,9273,851,00002,117,632stderr
5Jul 3, 2026 01:544,37911,663,0593,854,00002,117,632stderr
6Jul 3, 2026 01:544,48711,676,6783,949,00002,117,632stderr
7Jul 3, 2026 01:544,48711,714,7343,949,00002,117,632stderr
8Jul 3, 2026 01:544,49011,638,9333,952,00002,117,632stderr
9Jul 3, 2026 01:544,50111,702,1993,961,00002,117,632stderr
10Jul 3, 2026 01:544,50511,669,7693,965,00002,117,632stderr
11Jul 3, 2026 01:544,51011,972,4583,969,00002,117,632stderr
12Sep 5, 2026 04:31240,513219,982,749211,652,00002,117,632stderr