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 25, 2021 15:13Yuriy LyfenkoYuriy LyfenkoScore: 44,250Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 25, 2021 15:1338,928108,038,00534,256,47002,224,128
2Jun 25, 2021 15:1339,05196,179,89734,365,08102,220,032
3Jun 25, 2021 15:1339,108106,448,12134,414,66302,211,840
4Jun 25, 2021 15:1344,19264,011,34738,889,00002,269,184
5Jun 25, 2021 15:1344,19767,503,96436,899,0001,994,0002,269,184
6Jun 25, 2021 15:1344,24971,344,03836,943,0001,996,0002,269,184
7Jun 25, 2021 15:1344,25064,707,39936,944,0001,996,0002,269,184
8Jun 25, 2021 15:1344,27563,854,91137,963,000999,0002,269,184
9Jun 25, 2021 15:1344,27665,567,73137,964,000999,0002,383,872
10Jun 25, 2021 15:1344,37064,435,49138,045,0001,001,0002,371,584
11Jun 25, 2021 15:1344,38863,159,86637,058,0002,003,0002,269,184
12Jun 25, 2021 15:1344,41365,560,25938,081,0001,002,0002,269,184