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 listFeb 19, 2024 15:16Huy Duc LeHuy Duc LeScore: 35,255Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2024 15:1635,11166,225,27128,905,0001,993,0002,289,664
2Feb 19, 2024 15:1635,11358,239,96628,906,0001,993,0002,289,664
3Feb 19, 2024 15:1635,17254,095,02428,955,0001,996,0002,289,664
4Feb 19, 2024 15:1635,20765,664,04629,983,000999,0002,494,464
5Feb 19, 2024 15:1635,21859,241,88829,993,000999,0002,289,664
6Feb 19, 2024 15:1635,24759,793,86229,016,0002,001,0002,289,664
7Feb 19, 2024 15:1635,25556,105,33329,023,0002,001,0002,289,664
8Feb 19, 2024 15:1635,27557,252,18729,040,0002,002,0002,326,528
9Feb 19, 2024 15:1635,30097,624,97031,063,68802,207,744
10Feb 19, 2024 15:1635,30760,806,59929,066,0002,004,0002,289,664
11Feb 19, 2024 15:1635,37893,842,55031,132,25502,199,552
12Feb 19, 2024 15:1635,464124,281,91431,208,44202,207,744