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 22, 2025 18:33wainCGPwainCGPScore: 63,482Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 18:3363,17877,479,22951,554,0004,043,0002,473,984
2Feb 22, 2025 18:3363,48293,191,49451,874,0003,990,0002,478,080
3Feb 22, 2025 18:3366,30681,731,34053,319,0005,030,0002,330,624