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 08:08Ivan BessonovIvan BessonovScore: 51,244Success
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 08:0851,00368,885,63744,883,00002,273,280
2May 5, 2024 08:0851,06067,045,73342,936,0001,997,0002,289,664
3May 5, 2024 08:0851,07469,560,60942,948,0001,997,0002,289,664
4May 5, 2024 08:0851,07867,023,05942,952,0001,997,0002,269,184
5May 5, 2024 08:0851,09970,418,69542,969,0001,998,0002,289,664
6May 5, 2024 08:0851,21968,016,03943,070,0002,003,0002,269,184
7May 5, 2024 08:0851,24466,822,16743,091,0002,004,0002,523,136
8May 5, 2024 08:0851,263120,207,57945,111,87402,269,184
9May 5, 2024 08:0851,28466,912,63844,128,0001,002,0002,289,664
10May 5, 2024 08:0851,389109,268,18945,222,36202,260,992
11May 5, 2024 08:0851,424107,772,00645,253,04102,256,896
12May 5, 2024 08:0851,44972,145,40144,269,0001,006,0002,347,008