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 25, 2025 13:12wainCGPwainCGPScore: 30,756Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 25, 2025 13:1230,56156,304,64824,902,0001,992,0002,289,664
2Feb 25, 2025 13:1230,63455,180,57925,960,000998,0002,289,664
3Feb 25, 2025 13:1230,64352,851,76124,969,0001,997,0002,289,664
4Feb 25, 2025 13:1230,74148,606,36926,051,0001,001,0002,281,472
5Feb 25, 2025 13:1230,75655,053,93225,061,0002,004,0002,289,664
6Feb 25, 2025 13:1230,75856,279,24326,065,0001,002,0002,289,664
7Feb 25, 2025 13:1230,76453,634,27426,070,0001,002,0002,289,664
8Feb 25, 2025 13:1230,85054,008,17125,137,0002,011,0002,289,664
9Feb 25, 2025 13:1230,88850,989,77325,168,0002,013,0002,371,584