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 listJun 9, 2026 19:07Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:12Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:430162,478,682151,719,0001,005,0002,134,016expected "27504353727264 ", got "23482487002058 "
2Sep 5, 2026 00:430167,923,677157,255,0001,006,0002,134,016expected "28017027124995 ", got "23003544097049 "
3Sep 5, 2026 00:430154,323,745143,670,0001,005,0002,134,016expected "29062014187662 ", got "25470853516194 "
4Jun 9, 2026 19:139,15116,686,3876,860,0001,193,0002,183,168
5Jun 9, 2026 19:139,18416,848,1896,891,0001,191,0002,142,208
6Jun 9, 2026 19:139,18916,808,6046,974,0001,113,0002,142,208
7Jun 9, 2026 19:139,18916,888,0206,895,0001,192,0002,142,208
8Jun 9, 2026 19:139,21116,840,2206,912,0001,194,0002,142,208
9Jun 9, 2026 19:139,21216,855,7246,993,0001,114,0002,142,208
10Jun 9, 2026 19:139,21316,976,4876,912,0001,196,0002,187,264
11Jun 9, 2026 19:139,21816,882,8676,865,0001,247,0002,142,208
12Jun 9, 2026 19:139,45416,950,8807,146,0001,174,0002,142,208