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 20, 2024 03:44Huy Duc LeHuy Duc LeScore: 30,814Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 03:4430,51689,935,12126,854,33702,228,224
2Feb 20, 2024 03:4430,62885,137,55826,952,39102,211,840
3Feb 20, 2024 03:4430,71954,291,44225,031,0002,002,0002,490,368
4Feb 20, 2024 03:4430,72296,507,20227,035,67202,220,032
5Feb 20, 2024 03:4430,78055,490,96325,080,0002,006,0002,490,368
6Feb 20, 2024 03:4430,79053,489,10925,088,0002,007,0002,498,560
7Feb 20, 2024 03:4430,81455,781,00026,112,0001,004,0002,330,624
8Feb 20, 2024 03:4430,82347,239,80425,115,0002,009,0002,490,368
9Feb 20, 2024 03:4430,82548,010,31126,122,0001,004,0002,498,560
10Feb 20, 2024 03:4430,83655,785,98125,126,0002,010,0002,289,664
11Feb 20, 2024 03:4430,84854,069,75325,136,0002,010,0002,498,560
12Feb 20, 2024 03:4430,85151,983,94925,138,0002,011,0002,486,272