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 10, 2025 00:50zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:54M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:54010,152,8351,188,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:5409,706,5751,098,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:5409,546,6441,188,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 00:503,41418,410,9292,003,0001,001,0002,281,472
5Jan 10, 2025 00:503,43819,860,2742,017,0001,008,0002,506,752
6Jan 10, 2025 00:503,44320,747,6222,020,0001,010,0002,527,232
7Jan 10, 2025 00:503,45827,748,9702,029,0001,014,0002,539,520
8Jan 10, 2025 00:503,46023,670,6282,030,0001,015,0002,277,376
9Jan 10, 2025 00:503,46120,924,0852,031,0001,015,0002,531,328
10Jan 10, 2025 00:503,46123,750,9702,031,0001,015,0002,531,328
11Jan 10, 2025 00:504,29424,404,2893,779,00002,527,232
12Jan 10, 2025 00:504,32417,929,1763,805,00002,527,232