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 05:02Robert BurkeRobert BurkeScore: 22,078Success
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 05:0218,32760,882,06316,127,80002,232,320
2Dec 28, 2022 05:0218,35694,554,77016,153,42402,240,512
3Dec 28, 2022 05:0218,49171,706,01316,271,90002,236,416
4Dec 28, 2022 05:0222,04241,687,50418,377,0001,020,0002,490,368
5Dec 28, 2022 05:0222,07450,281,42719,425,00002,396,160
6Dec 28, 2022 05:0222,07543,643,72719,426,00002,396,160
7Dec 28, 2022 05:0222,07840,918,81318,407,0001,022,0002,392,064
8Dec 28, 2022 05:0222,09446,746,35418,420,0001,023,0002,383,872
9Dec 28, 2022 05:0222,11644,823,93817,414,0002,048,0002,383,872
10Dec 28, 2022 05:0222,15140,277,06719,493,00002,273,280
11Dec 28, 2022 05:0222,19541,780,94717,476,0002,056,0002,486,272
12Dec 28, 2022 05:0222,20541,477,42118,512,0001,028,0002,404,352