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 21, 2021 12:45Yuriy LyfenkoYuriy LyfenkoScore: 43,175Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 12:4543,082108,734,79137,912,35802,183,168
2Jun 21, 2021 12:4543,113106,749,20237,939,39902,195,456
3Jun 21, 2021 12:4543,11766,670,70136,945,000998,0002,527,232
4Jun 21, 2021 12:4543,121111,913,85037,946,43202,195,456
5Jun 21, 2021 12:4543,13367,677,84234,961,0002,996,0002,531,328
6Jun 21, 2021 12:4543,15161,513,29135,975,0001,998,0002,527,232
7Jun 21, 2021 12:4543,17569,444,58635,995,0001,999,0002,523,136
8Jun 21, 2021 12:4543,27763,009,33235,078,0003,006,0002,330,624
9Jun 21, 2021 12:4543,33368,954,93535,123,0003,010,0002,519,040
10Jun 21, 2021 12:4543,37860,064,27036,164,0002,009,0002,334,720
11Jun 21, 2021 12:4543,38068,678,99436,165,0002,009,0002,334,720
12Jun 21, 2021 12:4543,41662,472,46336,196,0002,010,0002,379,776