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 listJan 16, 2025 22:47Ian MckibbenIan MckibbenScore: 667,281Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2025 22:47664,995614,327,878565,190,00020,006,0002,404,352
2Jan 16, 2025 22:47667,281618,548,895566,200,00021,007,0002,465,792
3Jan 16, 2025 22:47668,847619,579,802562,604,00025,981,0002,342,912