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 30, 2026 12:59olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:46M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:47011,705,3164,323,00002,117,632expected "6442459076 ", got "2147490262 "
2May 17, 2026 07:47013,555,7814,280,00002,117,632expected "6442459076 ", got "2147490262 "
3May 17, 2026 07:47014,433,3494,272,00002,117,632expected "6442459076 ", got "2147490262 "
4Apr 30, 2026 13:0011,48030,051,1128,083,0002,020,0002,408,448
5Apr 30, 2026 13:0011,51927,002,9118,110,0002,027,0002,412,544
6Apr 30, 2026 13:0011,57926,559,0259,171,0001,019,0002,473,984
7Apr 30, 2026 13:0011,62531,482,3019,207,0001,023,0002,424,832
8Apr 30, 2026 13:0011,68428,636,7378,226,0002,056,0002,412,544
9Apr 30, 2026 13:0011,68727,939,7509,257,0001,028,0002,416,640
10Apr 30, 2026 13:0011,68927,214,3749,259,0001,028,0002,400,256
11Apr 30, 2026 13:0011,68923,437,8839,259,0001,028,0002,404,352
12Apr 30, 2026 13:0011,71330,477,6729,278,0001,030,0002,412,544