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 05:41Yuriy LyfenkoYuriy LyfenkoScore: 36,550Success
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 05:4133,31486,883,76729,316,65602,220,032
2Jun 27, 2021 05:4133,32599,806,34129,325,85702,232,320
3Jun 27, 2021 05:4133,50188,558,90629,481,24802,220,032
4Jun 27, 2021 05:4136,45761,219,91830,077,0002,005,0002,371,584
5Jun 27, 2021 05:4136,46159,553,01631,084,0001,002,0002,269,184
6Jun 27, 2021 05:4136,54958,474,38030,153,0002,010,0002,371,584
7Jun 27, 2021 05:4136,55058,603,02231,159,0001,005,0002,269,184
8Jun 27, 2021 05:4136,55157,253,31130,155,0002,010,0002,371,584
9Jun 27, 2021 05:4136,56158,514,96631,169,0001,005,0002,375,680
10Jun 27, 2021 05:4136,75560,448,00130,323,0002,021,0002,371,584
11Jun 27, 2021 05:4136,76755,577,83932,355,00002,269,184
12Jun 27, 2021 05:4136,76753,165,59031,344,0001,011,0002,482,176