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 listMay 7, 2026 08:31olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:23M-Rochat12.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:23012,148,2904,330,00002,113,536expected "6442459076 ", got "2147490262 "
2May 17, 2026 07:23011,538,6024,321,00002,113,536expected "6442459076 ", got "2147490262 "
3May 17, 2026 07:23013,890,3174,355,00002,113,536expected "6442459076 ", got "2147490262 "
4May 7, 2026 08:339,89723,197,2258,710,00002,539,520
5May 7, 2026 08:339,97223,425,8598,776,00002,547,712
6May 7, 2026 08:3310,01722,657,2478,815,00002,551,808
7May 7, 2026 08:3310,04424,651,8878,839,00002,551,808
8May 7, 2026 08:3310,04424,346,7618,839,00002,547,712
9May 7, 2026 08:3310,06021,288,5818,853,00002,543,616
10May 7, 2026 08:3310,06124,027,7718,854,00002,543,616
11May 7, 2026 08:3310,07223,835,3528,864,00002,551,808
12May 7, 2026 08:3310,10225,903,8848,890,00002,543,616