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 listApr 24, 2026 18:21Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:23M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:2509,473,1852,303,00002,113,536expected "6442459076 ", got "50700646218 "
2May 17, 2026 07:25010,499,4882,301,00002,113,536expected "6442459076 ", got "50700646218 "
3May 17, 2026 07:2509,473,1372,218,00002,113,536expected "6442459076 ", got "50700646218 "
4Apr 24, 2026 18:2510,64322,949,6498,326,0001,040,0002,469,888
5Apr 24, 2026 18:2510,65929,445,9238,338,0001,042,0002,465,792
6Apr 24, 2026 18:2510,68227,751,1028,357,0001,044,0002,469,888
7Apr 24, 2026 18:2510,68528,763,4878,359,0001,044,0002,465,792
8Apr 24, 2026 18:2510,69823,420,6778,369,0001,046,0002,465,792
9Apr 24, 2026 18:2510,69825,474,5318,369,0001,046,0002,465,792
10Apr 24, 2026 18:2510,70926,521,2888,377,0001,047,0002,473,984
11Apr 24, 2026 18:2510,74630,699,4988,407,0001,050,0002,469,888
12Apr 24, 2026 18:2510,79224,651,0958,442,0001,055,0002,469,888