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 listMay 18, 2024 20:26Ivan BessonovIvan BessonovScore: 17,153Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 20:2617,01839,902,90512,980,0001,996,0002,318,336
2May 18, 2024 20:2617,03935,710,26212,995,0001,999,0002,314,240
3May 18, 2024 20:2617,05040,837,10413,004,0002,000,0002,289,664
4May 18, 2024 20:2617,08531,963,71713,031,0002,004,0002,318,336
5May 18, 2024 20:2617,09440,033,78613,038,0002,005,0002,289,664
6May 18, 2024 20:2617,10932,293,50413,049,0002,007,0002,289,664
7May 18, 2024 20:2617,15343,196,97213,083,0002,012,0002,289,664
8May 18, 2024 20:2617,16143,305,15013,089,0002,013,0002,289,664
9May 18, 2024 20:2617,28378,979,10715,208,92102,183,168
10May 18, 2024 20:2617,29790,198,90215,221,73402,179,072
11May 18, 2024 20:2617,32093,521,38015,241,90102,183,168
12May 18, 2024 20:2617,75233,624,49014,581,0001,041,0002,289,664