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 10, 2025 14:29zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 14:2900000Error: expected "51158681117392 ", got "51158681117333 "stderr
2Jan 10, 2025 14:293,44723,786,5392,022,0001,011,0002,523,136
3Jan 10, 2025 14:293,48921,035,5952,047,0001,023,0002,519,040
4Jan 10, 2025 14:294,29721,703,6843,781,00002,519,040