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 listJul 23, 2024 19:19DanielDanielScore: 76,017Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2024 19:1976,011142,339,69166,889,81102,187,264
2Jul 23, 2024 19:1976,017140,778,05866,894,69402,260,992
3Jul 23, 2024 19:1976,021127,505,88166,898,11402,199,552