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:59mgildermgilderScore: 295,197Success
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:59294,928286,978,972258,535,0001,002,0002,289,664
2Feb 13, 2025 05:59295,197288,973,956257,775,0001,998,0002,371,584
3Feb 13, 2025 05:59297,152293,056,771261,494,00002,289,664