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 24, 2023 01:20Kenneth MaplesKenneth MaplesScore: 24,919Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:2024,72558,625,64021,758,00002,383,872
2Dec 24, 2023 01:2024,86152,409,67320,884,000994,0002,265,088
3Dec 24, 2023 01:2024,89054,005,98520,908,000995,0002,383,872
4Dec 24, 2023 01:2024,89447,754,02619,916,0001,991,0002,265,088
5Dec 24, 2023 01:2024,90552,555,93019,924,0001,992,0002,396,160
6Dec 24, 2023 01:2024,91444,589,62520,928,000996,0002,506,752
7Dec 24, 2023 01:2024,91945,740,12319,936,0001,993,0002,265,088
8Dec 24, 2023 01:2024,92746,440,96820,939,000997,0002,383,872
9Dec 24, 2023 01:2024,94049,143,40620,950,000997,0002,265,088
10Dec 24, 2023 01:2025,70883,187,02022,622,72802,236,416
11Dec 24, 2023 01:2025,71493,232,42322,628,23102,232,320
12Dec 24, 2023 01:2025,72281,344,21822,635,00302,248,704