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 21, 2025 15:04wainCGPwainCGPScore: 1,581,268Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 21, 2025 15:041,575,6941,419,443,4751,382,613,0003,998,0002,289,664
2Feb 21, 2025 15:041,581,2681,420,138,7161,387,518,0003,998,0002,363,392
3Feb 21, 2025 15:041,593,7851,431,304,9351,396,534,0005,997,0002,281,472