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 19:59wainCGPwainCGPScore: 53,802Success
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 19:5953,77571,002,91944,302,0003,020,0002,482,176
2Feb 22, 2025 19:5953,80270,188,99443,317,0004,029,0002,301,952
3Feb 22, 2025 19:5953,83169,981,97742,332,0005,039,0002,265,088