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:45Yuriy LyfenkoYuriy LyfenkoScore: 40,922Success
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:4539,654108,540,54534,895,19102,224,128
2Jun 27, 2021 05:4539,69097,963,45534,927,15702,220,032
3Jun 27, 2021 05:4539,69595,796,50834,931,39002,224,128
4Jun 27, 2021 05:4540,79163,410,23733,902,0001,994,0002,265,088
5Jun 27, 2021 05:4540,81165,092,70033,919,0001,995,0002,375,680
6Jun 27, 2021 05:4540,90070,398,33734,993,000999,0002,269,184
7Jun 27, 2021 05:4540,92263,776,65534,011,0002,000,0002,269,184
8Jun 27, 2021 05:4540,94265,546,96234,028,0002,001,0002,387,968
9Jun 27, 2021 05:4540,98163,698,99734,060,0002,003,0002,269,184
10Jun 27, 2021 05:4540,98665,273,14334,065,0002,003,0002,269,184
11Jun 27, 2021 05:4541,03663,131,87734,106,0002,006,0002,269,184
12Jun 27, 2021 05:4541,05369,075,58934,120,0002,007,0002,269,184