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 17, 2024 07:32Ivan BessonovIvan BessonovScore: 30,414Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 07:3230,13847,165,67926,521,00002,289,664
2May 17, 2024 07:3230,19746,739,54425,551,0001,022,0002,277,376
3May 17, 2024 07:3230,22352,865,35525,574,0001,022,0002,265,088
4May 17, 2024 07:3230,26348,896,65625,607,0001,024,0002,269,184
5May 17, 2024 07:3230,30252,872,29325,641,0001,025,0002,269,184
6May 17, 2024 07:3230,32249,554,71125,657,0001,026,0002,289,664
7May 17, 2024 07:3230,41454,800,34925,735,0001,029,0002,289,664
8May 17, 2024 07:3230,43353,305,78726,781,00002,363,392
9May 17, 2024 07:3230,63449,991,77724,962,0001,996,0002,527,232
10May 17, 2024 07:3232,51395,075,07028,611,16802,256,896
11May 17, 2024 07:3232,560100,485,80928,652,84502,269,184
12May 17, 2024 07:3232,72990,638,80228,801,22002,248,704