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:17gchebanovgchebanovScore: 59,531Success
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:1754,612121,332,49248,058,23202,187,264
2Jul 13, 2023 19:1754,871108,085,11048,286,30802,195,456
3Jul 13, 2023 19:1756,807109,687,36549,990,04202,199,552
4Jul 13, 2023 19:1759,08877,463,48449,998,0001,999,0002,293,760
5Jul 13, 2023 19:1759,14874,040,03350,049,0002,001,0002,490,368
6Jul 13, 2023 19:1759,32876,944,82650,201,0002,008,0002,293,760
7Jul 13, 2023 19:1759,53174,455,43751,380,0001,007,0002,293,760
8Jul 13, 2023 19:1759,63980,863,16251,473,0001,009,0002,293,760
9Jul 13, 2023 19:1760,41478,507,06352,161,0001,003,0002,293,760
10Jul 13, 2023 19:1760,44376,526,15651,183,0002,007,0002,490,368
11Jul 13, 2023 19:1760,48077,636,22052,218,0001,004,0002,293,760
12Jul 13, 2023 19:1760,67377,569,96751,378,0002,014,0002,486,272