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 19:07Yuriy LyfenkoYuriy LyfenkoScore: 32,553Success
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 19:0732,550113,459,98928,643,86202,224,128
2Jun 27, 2021 19:0732,55397,604,28128,646,49102,211,840
3Jun 27, 2021 19:0732,631100,469,27628,714,93202,224,128