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:37wainCGPwainCGPScore: 59,392Success
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:3759,37280,085,19048,228,0004,019,0002,420,736
2Feb 22, 2025 16:3759,39275,272,29549,250,0003,015,0002,490,368
3Feb 22, 2025 16:3760,09881,592,93946,899,0005,987,0002,506,752