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 18, 2021 01:20Yuriy LyfenkoYuriy LyfenkoScore: 108,905Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 01:20108,485151,694,40195,466,45502,232,320
2Jun 18, 2021 01:20108,714166,497,24495,668,18202,236,416
3Jun 18, 2021 01:20108,741157,200,26095,691,85402,232,320
4Jun 18, 2021 01:20108,905159,710,71395,836,47502,236,416
5Jun 18, 2021 01:20109,104160,870,67096,011,77902,240,512
6Jun 18, 2021 01:20109,240162,960,23396,131,46002,228,224