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 listJul 13, 2023 19:29gchebanovgchebanovScore: 59,032Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 19:2954,913115,426,70148,323,02902,260,992
2Jul 13, 2023 19:2956,348100,043,14949,586,35902,265,088
3Jul 13, 2023 19:2956,647106,649,57049,849,53102,252,800
4Jul 13, 2023 19:2958,95280,435,49849,883,0001,995,0002,293,760
5Jul 13, 2023 19:2958,98580,827,70350,890,0001,017,0002,293,760
6Jul 13, 2023 19:2959,00174,798,53350,903,0001,018,0002,433,024
7Jul 13, 2023 19:2959,03275,222,44549,950,0001,998,0002,424,832
8Jul 13, 2023 19:2959,06677,322,70750,979,000999,0002,457,600
9Jul 13, 2023 19:2959,09274,700,29951,001,0001,000,0002,420,736
10Jul 13, 2023 19:2959,13376,223,33151,037,0001,000,0002,293,760
11Jul 13, 2023 19:2959,24479,426,98651,133,0001,002,0002,420,736
12Jul 13, 2023 19:2960,68175,192,94452,392,0001,007,0002,424,832