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:57Yuriy LyfenkoYuriy LyfenkoScore: 36,313Success
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:5733,93090,616,56129,858,30102,215,936
2Jun 27, 2021 04:5734,047101,999,33229,960,93602,215,936
3Jun 27, 2021 04:5734,12390,876,29230,028,29102,224,128
4Jun 27, 2021 04:5736,09958,966,24530,743,0001,024,0002,482,176
5Jun 27, 2021 04:5736,23556,216,60031,887,00002,269,184
6Jun 27, 2021 04:5736,24557,800,59830,900,000996,0002,387,968
7Jun 27, 2021 04:5736,31362,661,19929,958,0001,997,0002,269,184
8Jun 27, 2021 04:5736,32356,942,90429,967,0001,997,0002,269,184
9Jun 27, 2021 04:5736,34357,966,79129,984,0001,998,0002,269,184
10Jun 27, 2021 04:5736,35761,977,35229,995,0001,999,0002,269,184
11Jun 27, 2021 04:5736,36858,477,52130,004,0002,000,0002,383,872
12Jun 27, 2021 04:5736,48058,482,02130,096,0002,006,0002,269,184