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 19, 2024 08:25Ivan BessonovIvan BessonovScore: 16,853Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:2516,46135,116,00114,486,00002,289,664
2May 19, 2024 08:2516,47537,490,73413,463,0001,035,0002,289,664
3May 19, 2024 08:2516,49437,210,10913,479,0001,036,0002,289,664
4May 19, 2024 08:2516,51332,371,93614,531,00002,330,624
5May 19, 2024 08:2516,55734,779,95513,530,0001,040,0002,289,664
6May 19, 2024 08:2516,57235,651,32014,583,00002,289,664
7May 19, 2024 08:2516,85389,801,22114,830,38902,187,264
8May 19, 2024 08:2516,94433,783,67213,917,000994,0002,289,664
9May 19, 2024 08:2516,99881,783,93914,958,07102,195,456
10May 19, 2024 08:2517,07741,945,02513,025,0002,003,0002,330,624
11May 19, 2024 08:2517,25139,278,47013,157,0002,024,0002,289,664
12May 19, 2024 08:2517,51795,975,47315,415,05202,187,264