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 27, 2021 00:58Yuriy LyfenkoYuriy LyfenkoScore: 38,915Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 00:5838,86494,338,63334,200,23902,228,224
2Jun 27, 2021 00:5838,915104,132,11634,244,87102,220,032
3Jun 27, 2021 00:5838,92388,789,38334,251,81202,228,224