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:44Yuriy LyfenkoYuriy LyfenkoScore: 36,640Success
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:4434,34998,041,26830,227,02702,215,936
2Jun 27, 2021 04:4434,44193,773,21330,307,92602,228,224
3Jun 27, 2021 04:4434,45491,412,49130,319,30002,244,608
4Jun 27, 2021 04:4436,53656,646,74531,148,0001,004,0002,367,488
5Jun 27, 2021 04:4436,54159,516,18730,147,0002,009,0002,375,680
6Jun 27, 2021 04:4436,61663,487,92030,209,0002,013,0002,375,680
7Jun 27, 2021 04:4436,64058,607,79230,228,0002,015,0002,269,184
8Jun 27, 2021 04:4436,66955,201,24331,261,0001,008,0002,269,184
9Jun 27, 2021 04:4436,68557,985,43731,275,0001,008,0002,375,680
10Jun 27, 2021 04:4436,69057,554,11332,287,00002,269,184
11Jun 27, 2021 04:4436,79454,712,54531,368,0001,011,0002,269,184
12Jun 27, 2021 04:4436,80557,015,73232,388,00002,269,184