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 16, 2026 16:20zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:24M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:24010,207,9851,117,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2408,301,1931,016,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:2408,325,8261,115,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 16, 2026 16:203,30320,276,9221,938,000969,0002,441,216
5Feb 16, 2026 16:193,31018,029,5491,942,000971,0002,433,024
6Feb 16, 2026 16:183,31524,572,8151,945,000972,0002,441,216
7Feb 16, 2026 16:183,32019,827,6451,948,000974,0002,441,216
8Feb 16, 2026 16:193,32419,690,7171,950,000975,0002,437,120
9Feb 16, 2026 16:203,33617,022,5852,936,00002,433,024
10Feb 16, 2026 16:173,33919,655,9211,959,000979,0002,424,832
11Feb 16, 2026 16:173,34916,805,6481,965,000982,0002,277,376
12Feb 16, 2026 16:203,42620,484,4272,010,0001,005,0002,433,024
13Feb 16, 2026 16:203,81419,808,4533,356,00002,277,376
14Feb 16, 2026 16:173,81720,539,4093,359,00002,277,376
15Feb 16, 2026 16:203,89318,607,8833,426,00002,433,024
16Feb 16, 2026 16:203,93817,106,0273,465,00002,277,376
17Feb 16, 2026 16:183,94919,054,6503,475,00002,437,120
18Feb 16, 2026 16:193,95917,889,0562,323,0001,161,0002,437,120