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 05:31Yuriy LyfenkoYuriy LyfenkoScore: 35,913Success
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 05:3133,67784,196,78529,635,49002,215,936
2Jun 27, 2021 05:3133,851109,965,86629,788,62902,220,032
3Jun 27, 2021 05:3133,94490,690,66829,870,76002,220,032
4Jun 27, 2021 05:3135,77352,122,89431,480,00002,367,488
5Jun 27, 2021 05:3135,79955,197,62630,487,0001,016,0002,269,184
6Jun 27, 2021 05:3135,80255,634,80730,490,0001,016,0002,383,872
7Jun 27, 2021 05:3135,91361,216,85131,603,00002,375,680
8Jun 27, 2021 05:3135,92853,813,91630,598,0001,019,0002,269,184
9Jun 27, 2021 05:3135,93354,680,22531,621,00002,383,872
10Jun 27, 2021 05:3135,98051,705,02030,641,0001,021,0002,375,680
11Jun 27, 2021 05:3136,02255,668,43930,677,0001,022,0002,269,184
12Jun 27, 2021 05:3136,05655,236,55531,729,00002,269,184