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:00Yuriy LyfenkoYuriy LyfenkoScore: 60,773Success
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:0056,425112,279,08649,654,15402,215,936
2Jun 27, 2021 04:0056,454132,434,72949,679,44902,224,128
3Jun 27, 2021 04:0056,513113,992,91649,731,16702,215,936
4Jun 27, 2021 04:0060,73980,159,73552,442,0001,008,0002,269,184
5Jun 27, 2021 04:0060,76580,055,83953,473,00002,269,184
6Jun 27, 2021 04:0060,77078,850,59952,469,0001,009,0002,269,184
7Jun 27, 2021 04:0060,77375,763,80053,480,00002,269,184
8Jun 27, 2021 04:0060,85177,690,65252,539,0001,010,0002,273,280
9Jun 27, 2021 04:0060,88378,967,77452,567,0001,010,0002,490,368
10Jun 27, 2021 04:0060,89877,262,30752,579,0001,011,0002,269,184
11Jun 27, 2021 04:0060,93877,122,61753,625,00002,371,584
12Jun 27, 2021 04:0060,99879,552,33252,666,0001,012,0002,375,680