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 24, 2025 15:23wainCGPwainCGPScore: 38,649Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2025 15:2338,50162,197,09728,899,0004,982,0002,293,760
2Feb 24, 2025 15:2338,64956,950,70630,010,0004,001,0002,428,928
3Feb 24, 2025 15:2338,89054,545,35130,197,0004,026,0002,416,640