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 10:23Ivan BessonovIvan BessonovScore: 21,574Success
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 10:2321,48443,620,23917,856,0001,050,0002,289,664
2May 18, 2024 10:2321,48948,412,86116,920,0001,990,0002,289,664
3May 18, 2024 10:2321,49938,381,84916,928,0001,991,0002,289,664
4May 18, 2024 10:2321,50039,828,27817,925,000995,0002,289,664
5May 18, 2024 10:2321,52245,952,60118,939,00002,289,664
6May 18, 2024 10:2321,55144,422,06416,969,0001,996,0002,289,664
7May 18, 2024 10:2321,57438,501,58617,986,000999,0002,445,312
8May 18, 2024 10:2321,63248,663,32417,033,0002,003,0002,289,664
9May 18, 2024 10:2321,71337,418,67117,096,0002,011,0002,289,664
10May 18, 2024 10:2322,78073,795,57320,046,83602,301,952
11May 18, 2024 10:2322,79688,633,16120,060,69302,297,856
12May 18, 2024 10:2322,858106,469,07820,114,77002,293,760