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 28, 2022 02:42Robert BurkeRobert BurkeScore: 18,903Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 02:4218,65160,717,21316,412,87102,232,320
2Dec 28, 2022 02:4218,75787,099,83416,505,82802,236,416
3Dec 28, 2022 02:4218,80637,124,89815,515,0001,034,0002,392,064
4Dec 28, 2022 02:4218,849102,289,28216,586,81502,236,416
5Dec 28, 2022 02:4218,86939,361,70916,605,00002,392,064
6Dec 28, 2022 02:4218,88332,805,51815,579,0001,038,0002,490,368
7Dec 28, 2022 02:4218,90340,160,93116,635,00002,392,064
8Dec 28, 2022 02:4218,91133,676,68316,642,00002,535,424
9Dec 28, 2022 02:4218,95136,128,46116,677,00002,387,968
10Dec 28, 2022 02:4218,96035,415,40014,600,0002,085,0002,392,064
11Dec 28, 2022 02:4219,09243,914,01615,751,0001,050,0002,396,160
12Dec 28, 2022 02:4219,23949,224,28714,939,0001,991,0002,387,968