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 18:07Yuriy LyfenkoYuriy LyfenkoScore: 58,373Success
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 18:0752,965106,136,97946,609,49702,224,128
2Jun 27, 2021 18:0753,001108,870,81046,640,47002,228,224
3Jun 27, 2021 18:0753,160100,164,63046,780,76702,220,032
4Jun 27, 2021 18:0758,33976,209,07551,338,00002,375,680
5Jun 27, 2021 18:0758,36773,901,46051,363,00002,269,184
6Jun 27, 2021 18:0758,37073,463,16751,366,00002,383,872
7Jun 27, 2021 18:0758,37379,726,29750,361,0001,007,0002,486,272
8Jun 27, 2021 18:0758,46470,223,44350,440,0001,008,0002,269,184
9Jun 27, 2021 18:0758,46575,777,43750,441,0001,008,0002,383,872
10Jun 27, 2021 18:0758,46975,269,70151,453,00002,375,680
11Jun 27, 2021 18:0758,52772,644,89451,504,00002,269,184
12Jun 27, 2021 18:0758,73181,517,86850,670,0001,013,0002,379,776