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 21, 2021 13:20Yuriy LyfenkoYuriy LyfenkoScore: 62,999Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 13:2047,49099,168,01441,791,18302,211,840
2Jun 21, 2021 13:2047,687120,874,70641,964,18202,220,032
3Jun 21, 2021 13:2047,767117,031,95542,034,83902,215,936
4Jun 21, 2021 13:2062,65581,990,65654,134,0001,002,0002,383,872
5Jun 21, 2021 13:2062,74182,650,64154,209,0001,003,0002,269,184
6Jun 21, 2021 13:2062,81783,614,60653,269,0002,010,0002,269,184
7Jun 21, 2021 13:2062,99981,324,86355,439,00002,269,184
8Jun 21, 2021 13:2063,02381,154,27855,460,00002,273,280
9Jun 21, 2021 13:2063,02683,036,22455,463,00002,269,184
10Jun 21, 2021 13:2063,06883,568,92354,491,0001,009,0002,269,184
11Jun 21, 2021 13:2063,17376,773,59454,582,0001,010,0002,269,184
12Jun 21, 2021 13:2063,20577,664,23554,609,0001,011,0002,269,184