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 listDec 1, 2022 06:27apuxbtapuxbtScore: 32,480Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:2731,797136,467,96227,981,47502,240,512
2Dec 1, 2022 06:2731,872109,783,66528,047,54902,228,224
3Dec 1, 2022 06:2731,97097,260,05928,133,59502,232,320
4Dec 1, 2022 06:2732,39449,777,09328,507,00002,265,088
5Dec 1, 2022 06:2732,45851,217,25828,563,00002,383,872
6Dec 1, 2022 06:2732,47456,618,39427,557,0001,020,0002,265,088
7Dec 1, 2022 06:2732,48057,723,11927,562,0001,020,0002,265,088
8Dec 1, 2022 06:2732,50849,417,70427,586,0001,021,0002,396,160
9Dec 1, 2022 06:2732,50951,509,38827,587,0001,021,0002,392,064
10Dec 1, 2022 06:2732,51049,388,98227,588,0001,021,0002,265,088
11Dec 1, 2022 06:2732,68559,111,44128,763,00002,379,776
12Dec 1, 2022 06:2732,83557,044,73026,903,0001,992,0002,265,088