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:04Ivan BessonovIvan BessonovScore: 54,674Success
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:0454,52469,648,30145,982,0001,999,0002,289,664
2May 5, 2024 08:0454,61470,945,45146,058,0002,002,0002,289,664
3May 5, 2024 08:0454,61871,470,73546,062,0002,002,0002,269,184
4May 5, 2024 08:0454,62471,822,57347,068,0001,001,0002,289,664
5May 5, 2024 08:0454,642103,793,60748,085,27302,260,992
6May 5, 2024 08:0454,67070,817,59146,106,0002,004,0002,289,664
7May 5, 2024 08:0454,67472,179,07046,109,0002,004,0002,289,664
8May 5, 2024 08:0454,69572,157,56446,127,0002,005,0002,289,664
9May 5, 2024 08:0454,733105,586,46448,165,29402,256,896
10May 5, 2024 08:0454,82272,151,22747,238,0001,005,0002,273,280
11May 5, 2024 08:0454,92874,444,63346,323,0002,014,0002,289,664
12May 5, 2024 08:0455,162126,049,66048,542,51902,256,896