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 07:50Ivan BessonovIvan BessonovScore: 53,932Success
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 07:5053,833103,635,32747,372,86302,256,896
2May 5, 2024 07:5053,83868,573,18546,369,0001,008,0002,289,664
3May 5, 2024 07:5053,85370,794,17946,383,0001,008,0002,527,232
4May 5, 2024 07:5053,86468,470,41346,392,0001,008,0002,289,664
5May 5, 2024 07:5053,87669,674,86647,411,00002,289,664
6May 5, 2024 07:5053,90870,905,09246,430,0001,009,0002,289,664
7May 5, 2024 07:5053,93269,768,44446,451,0001,009,0002,289,664
8May 5, 2024 07:5053,93874,719,92847,465,00002,265,088
9May 5, 2024 07:5054,006129,651,63947,525,69802,260,992
10May 5, 2024 07:5054,07771,919,76046,576,0001,012,0002,289,664
11May 5, 2024 07:5054,09174,676,82347,600,00002,289,664
12May 5, 2024 07:5054,126108,785,60047,631,04102,260,992