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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:44010,215,2521,102,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:4408,347,5961,111,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:4408,335,5211,037,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 00:593,40620,314,0691,998,000999,0002,285,568
5Jan 10, 2025 00:593,41319,406,0672,002,0001,001,0002,289,664
6Jan 10, 2025 00:593,44117,387,0722,019,0001,009,0002,281,472
7Jan 10, 2025 00:593,44116,878,5072,019,0001,009,0002,289,664
8Jan 10, 2025 00:593,44821,171,4732,023,0001,011,0002,293,760
9Jan 10, 2025 00:593,44820,786,3312,023,0001,011,0002,289,664
10Jan 10, 2025 00:593,46018,958,3851,015,0002,030,0002,293,760
11Jan 10, 2025 00:593,46419,793,3452,032,0001,016,0002,519,040
12Jan 10, 2025 00:593,46719,367,0392,034,0001,017,0002,281,472