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 listJun 24, 2024 16:22Franek KortaFranek KortaScore: 6,763,950Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 24, 2024 16:226,762,6906,009,286,5025,951,167,41402,293,760
2Jun 24, 2024 16:226,763,9506,015,981,0965,952,275,75102,252,800
3Jun 24, 2024 16:226,831,3196,073,558,2186,011,560,47502,293,760