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 15:58Yuriy LyfenkoYuriy LyfenkoScore: 56,484Success
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 15:5839,68489,938,48334,922,12702,215,936
2Jun 27, 2021 15:5839,71897,316,29234,952,08302,215,936
3Jun 27, 2021 15:5839,764109,192,47734,992,68402,215,936
4Jun 27, 2021 15:5856,26774,744,84149,515,00002,375,680
5Jun 27, 2021 15:5856,31876,164,52449,560,00002,269,184
6Jun 27, 2021 15:5856,38870,735,56348,609,0001,012,0002,265,088
7Jun 27, 2021 15:5856,48474,477,31749,706,00002,269,184
8Jun 27, 2021 15:5856,61476,866,06147,828,0001,992,0002,375,680
9Jun 27, 2021 15:5856,68974,639,79149,886,00002,269,184
10Jun 27, 2021 15:5856,69579,375,31049,892,00002,265,088
11Jun 27, 2021 15:5856,69580,106,16548,895,000997,0002,269,184
12Jun 27, 2021 15:5856,70175,459,92647,902,0001,995,0002,375,680