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 listSep 19, 2024 20:34Andrey LikhachevAndrey LikhachevScore: 33,426Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 19, 2024 20:3433,36456,478,65728,348,0001,012,0002,359,296
2Sep 19, 2024 20:3433,37055,660,93528,354,0001,012,0002,379,776
3Sep 19, 2024 20:3433,41051,702,46529,401,00002,289,664
4Sep 19, 2024 20:3433,42255,771,09329,411,00002,355,200
5Sep 19, 2024 20:3433,42651,435,49228,401,0001,014,0002,367,488
6Sep 19, 2024 20:3433,44357,037,59329,430,00002,375,680
7Sep 19, 2024 20:3433,44753,849,79328,419,0001,014,0002,293,760
8Sep 19, 2024 20:3433,51656,427,10229,494,00002,293,760
9Sep 19, 2024 20:3433,60951,168,74128,557,0001,019,0002,367,488