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 16:19wainCGPwainCGPScore: 58,602Success
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 16:1958,40277,713,68346,356,0005,038,0002,486,272
2Feb 22, 2025 16:1958,60272,067,16046,515,0005,055,0002,486,272
3Feb 22, 2025 16:1958,96174,920,55446,897,0004,989,0002,396,160