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:26Andrey LikhachevAndrey LikhachevScore: 34,173Success
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:2634,06654,816,59127,980,0001,998,0002,293,760
2Sep 19, 2024 20:2634,10362,879,69029,011,0001,000,0002,359,296
3Sep 19, 2024 20:2634,11855,928,19529,024,0001,000,0002,293,760
4Sep 19, 2024 20:2634,15753,643,60228,055,0002,003,0002,363,392
5Sep 19, 2024 20:2634,17351,388,85828,068,0002,004,0002,367,488
6Sep 19, 2024 20:2634,18554,627,31428,078,0002,005,0002,367,488
7Sep 19, 2024 20:2634,20251,879,43728,092,0002,006,0002,363,392
8Sep 19, 2024 20:2634,20953,545,33029,101,0001,003,0002,363,392
9Sep 19, 2024 20:2634,22857,042,77928,113,0002,008,0002,359,296