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 5, 2024 10:48Ivan BessonovIvan BessonovScore: 44,484Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 10:4844,34261,472,35637,020,0002,001,0002,269,184
2May 5, 2024 10:4844,39766,367,65237,066,0002,003,0002,289,664
3May 5, 2024 10:4844,40362,510,87437,072,0002,003,0002,289,664
4May 5, 2024 10:4844,43267,759,83738,098,0001,002,0002,265,088
5May 5, 2024 10:4844,44463,999,10737,106,0002,005,0002,269,184
6May 5, 2024 10:4844,46767,456,70437,125,0002,006,0002,289,664
7May 5, 2024 10:4844,48461,845,41838,143,0001,003,0002,387,968
8May 5, 2024 10:4844,52862,104,33038,181,0001,004,0002,289,664
9May 5, 2024 10:4844,58269,699,37137,221,0002,011,0002,289,664
10May 5, 2024 10:4845,09897,763,42939,685,81102,269,184
11May 5, 2024 10:4845,374106,068,24239,928,83902,256,896
12May 5, 2024 10:4845,514117,464,29840,052,73302,265,088