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 15, 2026 00:41zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:13M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:1308,461,2151,021,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 07:1308,270,9491,027,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 07:13010,477,1451,039,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 15, 2026 00:423,40715,328,0771,999,000999,0002,441,216
5Feb 15, 2026 00:423,42721,139,9482,011,0001,005,0002,445,312
6Feb 15, 2026 00:413,45122,156,6252,025,0001,012,0002,433,024
7Feb 15, 2026 00:413,49120,863,6662,048,0001,024,0002,445,312
8Feb 15, 2026 00:423,86524,273,3003,401,00002,437,120
9Feb 15, 2026 00:414,28920,471,7553,774,00002,441,216