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 23, 2025 06:09wainCGPwainCGPScore: 49,909Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2025 06:0949,49470,084,11938,491,0005,064,0002,265,088
2Feb 23, 2025 06:0949,65869,800,61339,634,0004,065,0002,330,624
3Feb 23, 2025 06:0949,85873,935,03039,887,0003,988,0002,379,776
4Feb 23, 2025 06:0949,90772,427,63738,812,0005,106,0002,478,080
5Feb 23, 2025 06:0949,90970,828,83537,931,0005,989,0002,301,952
6Feb 23, 2025 06:0949,95067,833,08439,960,0003,996,0002,392,064
7Feb 23, 2025 06:0949,99166,708,78538,993,0004,999,0002,334,720
8Feb 23, 2025 06:0950,01966,703,07940,016,0004,001,0002,404,352
9Feb 23, 2025 06:0950,52567,082,27238,399,0006,063,0002,502,656