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: 72,489Success
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:1972,226129,748,83463,559,27802,195,456
2Jul 23, 2024 19:1972,489121,859,68063,790,46902,203,648
3Jul 23, 2024 19:1973,293129,360,90064,497,84802,203,648