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 13, 2025 05:57mgildermgilderScore: 296,990Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 13, 2025 05:57295,910280,038,597259,400,0001,001,0002,289,664
2Feb 13, 2025 05:57296,990289,164,919260,350,0001,001,0002,461,696
3Feb 13, 2025 05:57297,309284,338,881260,630,0001,002,0002,371,584