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 23, 2023 20:37Kenneth MaplesKenneth MaplesScore: 23,830Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 20:3723,75144,429,82918,911,0001,990,0002,392,064
2Dec 23, 2023 20:3723,75245,853,38419,907,000995,0002,506,752
3Dec 23, 2023 20:3723,75947,229,43218,917,0001,991,0002,265,088
4Dec 23, 2023 20:3723,76948,759,14818,925,0001,992,0002,265,088
5Dec 23, 2023 20:3723,77745,973,44418,932,0001,992,0002,265,088
6Dec 23, 2023 20:3723,82050,668,17618,966,0001,996,0002,265,088
7Dec 23, 2023 20:3723,83047,288,07418,973,0001,997,0002,265,088
8Dec 23, 2023 20:3723,87747,004,39819,011,0002,001,0002,392,064
9Dec 23, 2023 20:3723,89038,108,22920,022,0001,001,0002,265,088
10Dec 23, 2023 20:3724,069112,040,84921,180,41702,232,320
11Dec 23, 2023 20:3724,11983,940,69521,224,78802,240,512
12Dec 23, 2023 20:3724,20980,688,36721,303,70802,232,320