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 listJul 22, 2023 06:42matsuoka-601matsuoka-601Score: 40,016Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 22, 2023 06:4239,69962,608,49227,948,0006,987,0002,326,528
2Jul 22, 2023 06:4239,74265,075,87928,978,0005,995,0002,420,736
3Jul 22, 2023 06:4239,81059,371,20531,030,0004,003,0002,359,296
4Jul 22, 2023 06:4239,83565,136,69131,049,0004,006,0002,293,760
5Jul 22, 2023 06:4239,92068,708,20532,119,0003,011,0002,424,832
6Jul 22, 2023 06:4239,96559,867,92230,145,0005,024,0002,273,280
7Jul 22, 2023 06:4240,016102,716,83735,214,42302,256,896
8Jul 22, 2023 06:4240,04161,217,98431,209,0004,027,0002,478,080
9Jul 22, 2023 06:4240,047102,914,35835,241,76802,256,896
10Jul 22, 2023 06:4240,05191,788,63035,244,45702,203,648
11Jul 22, 2023 06:4240,16759,053,09428,278,0007,069,0002,400,256
12Jul 22, 2023 06:4240,18863,573,11431,324,0004,041,0002,457,600