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 04:03Yuriy LyfenkoYuriy LyfenkoScore: 44,368Success
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 04:0341,56290,902,47336,574,75102,224,128
2Jun 27, 2021 04:0341,77094,459,15036,757,85802,224,128
3Jun 27, 2021 04:0341,802101,496,87536,785,91802,228,224
4Jun 27, 2021 04:0344,21665,023,37636,915,0001,995,0002,269,184
5Jun 27, 2021 04:0344,27770,119,37137,965,000999,0002,269,184
6Jun 27, 2021 04:0344,33167,185,40037,011,0002,000,0002,269,184
7Jun 27, 2021 04:0344,36871,369,81637,042,0002,002,0002,375,680
8Jun 27, 2021 04:0344,36866,571,26238,043,0001,001,0002,269,184
9Jun 27, 2021 04:0344,36968,880,40637,043,0002,002,0002,269,184
10Jun 27, 2021 04:0344,40067,168,21337,069,0002,003,0002,383,872
11Jun 27, 2021 04:0344,40264,491,28237,071,0002,003,0002,269,184
12Jun 27, 2021 04:0344,45867,868,64738,120,0001,003,0002,269,184