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:37Yuriy LyfenkoYuriy LyfenkoScore: 36,836Success
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:3731,49289,155,96927,712,57502,228,224
2Jun 27, 2021 19:3731,58598,220,97527,794,93302,215,936
3Jun 27, 2021 19:3731,62888,144,16927,832,95102,215,936
4Jun 27, 2021 19:3736,69957,333,51731,286,0001,009,0002,269,184
5Jun 27, 2021 19:3736,78858,096,52932,373,00002,269,184
6Jun 27, 2021 19:3736,79853,764,39832,382,00002,375,680
7Jun 27, 2021 19:3736,83664,136,90031,403,0001,013,0002,375,680
8Jun 27, 2021 19:3736,85551,206,95731,419,0001,013,0002,367,488
9Jun 27, 2021 19:3736,86653,669,36731,429,0001,013,0002,269,184
10Jun 27, 2021 19:3736,87559,473,84931,436,0001,014,0002,375,680
11Jun 27, 2021 19:3736,91155,613,03131,467,0001,015,0002,379,776
12Jun 27, 2021 19:3736,95654,303,87631,505,0001,016,0002,469,888