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:29apuxbtapuxbtScore: 33,616Success
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:2932,850110,319,19128,908,29702,240,512
2Dec 1, 2022 06:2932,96693,466,73829,009,88702,224,128
3Dec 1, 2022 06:2933,00393,128,90229,042,67102,236,416
4Dec 1, 2022 06:2933,53951,625,74128,497,0001,017,0002,265,088
5Dec 1, 2022 06:2933,59155,835,16728,541,0001,019,0002,265,088
6Dec 1, 2022 06:2933,60055,351,97828,549,0001,019,0002,265,088
7Dec 1, 2022 06:2933,61650,786,31228,562,0001,020,0002,392,064
8Dec 1, 2022 06:2933,64956,006,29428,590,0001,021,0002,265,088
9Dec 1, 2022 06:2933,65856,661,82628,598,0001,021,0002,383,872
10Dec 1, 2022 06:2933,70654,981,28528,639,0001,022,0002,383,872
11Dec 1, 2022 06:2933,71450,595,49228,645,0001,023,0002,265,088
12Dec 1, 2022 06:2933,85061,562,90828,761,0001,027,0002,387,968