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 13, 2023 18:44Andrew EpsteinAndrew EpsteinScore: 161,813Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 18:44161,747199,942,287142,337,72802,252,800
2Jul 13, 2023 18:44161,813208,726,540142,395,12702,265,088
3Jul 13, 2023 18:44162,572217,452,231143,063,02902,265,088