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 29, 2022 03:19Yuriy LyfenkoYuriy LyfenkoScore: 28,513Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 03:1928,13252,348,81023,725,0001,031,0002,265,088
2Dec 29, 2022 03:1928,29353,976,75522,907,0001,991,0002,387,968
3Dec 29, 2022 03:1928,36352,253,05422,963,0001,996,0002,527,232
4Dec 29, 2022 03:1928,37553,731,30323,972,000998,0002,265,088
5Dec 29, 2022 03:1928,42252,867,89924,011,0001,000,0002,502,656
6Dec 29, 2022 03:1928,43551,091,91723,022,0002,001,0002,392,064
7Dec 29, 2022 03:1928,51357,807,89823,084,0002,007,0002,527,232
8Dec 29, 2022 03:1928,54154,565,71023,107,0002,009,0002,387,968
9Dec 29, 2022 03:1928,63051,723,02723,179,0002,015,0002,396,160
10Dec 29, 2022 03:1928,85795,241,21525,393,90102,236,416
11Dec 29, 2022 03:1929,07896,220,28325,588,37802,232,320
12Dec 29, 2022 03:1929,136100,892,69425,639,64102,236,416