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 22:21Yuriy LyfenkoYuriy LyfenkoScore: 36,734Success
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 22:2131,36489,323,76327,600,15602,215,936
2Jun 27, 2021 22:2131,47791,423,36327,699,97902,220,032
3Jun 27, 2021 22:2131,561106,469,00727,773,83502,215,936
4Jun 27, 2021 22:2136,66054,848,84531,253,0001,008,0002,269,184
5Jun 27, 2021 22:2136,69858,853,48232,294,00002,269,184
6Jun 27, 2021 22:2136,72459,180,19332,317,00002,269,184
7Jun 27, 2021 22:2136,73461,573,92232,326,00002,269,184
8Jun 27, 2021 22:2136,77356,297,27931,349,0001,011,0002,269,184
9Jun 27, 2021 22:2136,83155,348,85032,411,00002,383,872
10Jun 27, 2021 22:2136,84059,132,61232,419,00002,379,776
11Jun 27, 2021 22:2136,86355,389,21732,439,00002,269,184
12Jun 27, 2021 22:2136,87558,735,24932,450,00002,383,872