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 listAug 6, 2025 21:50zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:38M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:3808,399,9541,214,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:38010,477,8501,150,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:3809,043,6721,127,00002,113,536expected "6442459076 ", got "2305422578 "
4Aug 6, 2025 21:503,37623,022,3721,981,000990,0002,355,200
5Aug 6, 2025 21:503,38918,919,1901,988,000994,0002,359,296
6Aug 6, 2025 21:503,39021,053,4901,989,000994,0002,363,392
7Aug 6, 2025 21:503,39521,580,9321,992,000996,0002,355,200
8Aug 6, 2025 21:503,41616,912,5702,004,0001,002,0002,531,328
9Aug 6, 2025 21:503,42020,710,8962,007,0001,003,0002,347,008
10Aug 6, 2025 21:503,42016,880,1932,007,0001,003,0002,355,200
11Aug 6, 2025 21:503,42318,104,1742,008,0001,004,0002,527,232
12Aug 6, 2025 21:503,42419,405,3772,009,0001,004,0002,531,328