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 listFeb 28, 2026 19:17zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:16M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1608,703,6541,098,00002,113,536expected "6442459076 ", got "2305422676 "
2May 17, 2026 05:1609,249,302998,00002,113,536expected "6442459076 ", got "2305422676 "
3May 17, 2026 05:1608,793,0931,098,00002,113,536expected "6442459076 ", got "2305422676 "
4Feb 28, 2026 19:183,09019,204,1252,719,00002,424,832
5Feb 28, 2026 19:183,10822,551,6342,735,00002,424,832
6Feb 28, 2026 19:193,10819,140,0352,735,00002,416,640
7Feb 28, 2026 19:173,11422,258,6732,740,00002,416,640
8Feb 28, 2026 19:193,12016,703,4142,746,00002,424,832
9Feb 28, 2026 19:183,12216,442,9732,747,00002,416,640
10Feb 28, 2026 19:173,13117,836,3242,755,00002,416,640
11Feb 28, 2026 19:173,13419,927,8752,758,00002,428,928
12Feb 28, 2026 19:183,30819,811,9251,941,000970,0002,428,928
13Feb 28, 2026 19:193,31419,621,696972,0001,944,0002,535,424
14Feb 28, 2026 19:183,31524,926,2851,945,000972,0002,277,376
15Feb 28, 2026 19:193,31523,765,9702,917,00002,277,376
16Feb 28, 2026 19:173,31720,896,3971,946,000973,0002,420,736
17Feb 28, 2026 19:183,31818,678,7652,920,00002,420,736
18Feb 28, 2026 19:193,32223,926,8271,949,000974,0002,416,640
19Feb 28, 2026 19:183,32224,022,4901,949,000974,0002,424,832
20Feb 28, 2026 19:173,32218,449,6691,949,000974,0002,420,736
21Feb 28, 2026 19:193,32520,285,9822,926,00002,424,832
22Feb 28, 2026 19:173,59821,699,5192,111,0001,055,0002,420,736
23Feb 28, 2026 19:183,84316,345,2202,255,0001,127,0002,416,640
24Feb 28, 2026 19:183,85620,654,4033,393,00002,424,832