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 20, 2024 15:04Ivan BessonovIvan BessonovScore: 17,183Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 15:0416,20480,243,95614,259,53002,191,360
2May 20, 2024 15:0416,77183,776,80214,758,48102,195,456
3May 20, 2024 15:0416,80590,570,08914,788,15302,191,360
4May 20, 2024 15:0417,13430,618,77113,068,0002,010,0002,289,664
5May 20, 2024 15:0417,13632,993,21613,070,0002,010,0002,289,664
6May 20, 2024 15:0417,17638,747,53113,100,0002,015,0002,289,664
7May 20, 2024 15:0417,18336,227,11313,105,0002,016,0002,338,816
8May 20, 2024 15:0417,18842,187,08713,109,0002,016,0002,289,664
9May 20, 2024 15:0417,19732,072,15013,116,0002,017,0002,289,664
10May 20, 2024 15:0417,22230,417,07014,145,0001,010,0002,289,664
11May 20, 2024 15:0417,24936,705,43415,179,00002,457,600
12May 20, 2024 15:0417,83444,180,34814,648,0001,046,0002,289,664