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 20, 2021 19:25Yuriy LyfenkoYuriy LyfenkoScore: 57,006Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 19:2542,541106,455,15437,435,76502,220,032
2Jun 20, 2021 19:2542,600103,035,97337,487,62602,215,936
3Jun 20, 2021 19:2542,60899,073,33637,495,37502,220,032
4Jun 20, 2021 19:2556,79479,506,72247,980,0001,999,0002,269,184
5Jun 20, 2021 19:2556,97675,952,54649,137,0001,002,0002,379,776
6Jun 20, 2021 19:2556,99579,183,05648,150,0002,006,0002,269,184
7Jun 20, 2021 19:2557,00678,824,48748,159,0002,006,0002,269,184
8Jun 20, 2021 19:2557,05374,112,63748,199,0002,008,0002,269,184
9Jun 20, 2021 19:2557,10676,799,59548,243,0002,010,0002,265,088
10Jun 20, 2021 19:2557,13180,285,93449,270,0001,005,0002,269,184
11Jun 20, 2021 19:2557,13973,247,66149,277,0001,005,0002,371,584
12Jun 20, 2021 19:2557,25171,486,76250,381,00002,269,184