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 8, 2026 05:17olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 12:50M-Rochat16.94CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 12:56011,954,1404,753,00002,113,536expected "6442459076 ", got "2147490262 "
2May 17, 2026 12:56012,354,7794,853,00002,113,536expected "6442459076 ", got "2147490262 "
3May 17, 2026 12:56011,954,8064,737,00002,113,536expected "6442459076 ", got "2147490262 "
4Apr 8, 2026 05:1711,76927,334,65410,357,00002,265,088
5Apr 8, 2026 05:1711,81334,344,12810,395,00002,322,432
6Apr 8, 2026 05:1711,95025,506,02310,516,00002,519,040
7Apr 8, 2026 05:1711,95223,728,15410,518,00002,523,136
8Apr 8, 2026 05:1711,95527,522,16410,520,00002,527,232
9Apr 8, 2026 05:1711,95824,351,28910,523,00002,523,136
10Apr 8, 2026 05:1711,96727,844,57710,531,00002,519,040
11Apr 8, 2026 05:1711,96931,870,03010,533,00002,523,136
12Apr 8, 2026 05:1711,98028,499,84910,542,00002,428,928