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 14, 2025 03:19mgildermgilderScore: 278,538Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2025 03:19278,139270,560,310242,764,0001,998,0002,289,664
2Feb 14, 2025 03:19278,538268,497,779243,113,0002,000,0002,461,696
3Feb 14, 2025 03:19279,425270,287,442243,895,0001,999,0002,289,664