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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:28M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2808,612,7851,127,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 05:2808,232,4511,026,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 05:2809,285,9361,122,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 17:163,36325,104,1902,959,00002,273,280
5Jan 10, 2025 17:163,38220,072,7241,984,000992,0002,273,280
6Jan 10, 2025 17:163,38317,057,7321,985,000992,0002,359,296
7Jan 10, 2025 17:163,38622,852,2711,987,000993,0002,273,280
8Jan 10, 2025 17:163,39920,321,0971,994,000997,0002,367,488
9Jan 10, 2025 17:163,40721,133,1011,999,000999,0002,355,200
10Jan 10, 2025 17:163,45322,377,4422,026,0001,013,0002,351,104
11Jan 10, 2025 17:163,46820,743,0462,035,0001,017,0002,359,296
12Jan 10, 2025 17:163,51119,059,6962,060,0001,030,0002,359,296