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 09:45wainCGPwainCGPScore: 136,430Success
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 09:45135,417145,075,692114,160,0005,007,0002,392,064
2Feb 22, 2025 09:45136,430143,340,961115,056,0005,002,0002,420,736
3Feb 22, 2025 09:45136,819144,932,995115,385,0005,016,0002,420,736