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:39zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:09M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:09010,042,0921,158,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:0908,758,0821,159,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:0908,377,5431,156,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 24, 2026 01:403,39721,531,6561,993,000996,0002,351,104
5Jan 24, 2026 01:403,46124,889,9191,015,0002,031,0002,351,104
6Jan 24, 2026 01:393,47515,231,8712,039,0001,019,0002,359,296
7Jan 24, 2026 01:403,48424,692,8031,022,0002,044,0002,351,104
8Jan 24, 2026 01:393,54221,577,9961,039,0002,078,0002,363,392
9Jan 24, 2026 01:393,65818,864,1272,146,0001,073,0002,351,104