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 listJan 24, 2026 01:22zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:16M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:17010,841,5181,233,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:1709,141,9341,231,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:1708,732,3661,215,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 24, 2026 01:223,42020,483,7382,007,0001,003,0002,355,200
5Jan 24, 2026 01:223,44718,274,7742,022,0001,011,0002,473,984
6Jan 24, 2026 01:223,49820,104,5902,052,0001,026,0002,351,104
7Jan 24, 2026 01:223,50617,060,5232,057,0001,028,0002,510,848
8Jan 24, 2026 01:223,55322,114,1751,042,0002,085,0002,351,104
9Jan 24, 2026 01:224,14917,654,4353,651,00002,535,424