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 7, 2026 19:35vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:10M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:10010,105,2761,115,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:10010,299,5791,123,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:1008,377,7921,103,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 19:353,31118,757,105971,0001,943,0002,510,848
5Feb 7, 2026 19:353,31819,872,977973,0001,947,0002,506,752
6Feb 7, 2026 19:353,31816,666,3231,947,000973,0002,506,752
7Feb 7, 2026 19:353,31824,663,797973,0001,947,0002,510,848
8Feb 7, 2026 19:353,32017,556,0931,948,000974,0002,506,752
9Feb 7, 2026 19:353,32219,285,4891,949,000974,0002,506,752
10Feb 7, 2026 19:353,32420,836,9141,950,000975,0002,506,752
11Feb 7, 2026 19:353,33523,341,424978,0001,957,0002,277,376
12Feb 7, 2026 19:353,40619,196,163999,0001,998,0002,506,752