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 23, 2025 10:268QTK8QTKScore: 77,227Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 10:2676,76196,112,57665,534,0002,016,0002,285,568
2Jan 23, 2025 10:2676,95193,267,08265,696,0002,021,0002,461,696
3Jan 23, 2025 10:2677,12892,639,42263,881,0003,992,0002,469,888
4Jan 23, 2025 10:2677,18690,702,71663,929,0003,995,0002,285,568
5Jan 23, 2025 10:2677,22796,850,68063,963,0003,997,0002,289,664
6Jan 23, 2025 10:2677,37495,921,90464,084,0004,005,0002,519,040
7Jan 23, 2025 10:2677,40391,625,44065,110,0003,005,0002,469,888
8Jan 23, 2025 10:2677,41395,531,57564,116,0004,007,0002,285,568
9Jan 23, 2025 10:2677,45793,721,05964,153,0004,009,0002,289,664