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 listJul 30, 2022 13:43Yuriy LyfenkoYuriy LyfenkoScore: 38,908Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 13:4330,34599,945,08126,703,56602,228,224
2Jul 30, 2022 13:4330,526108,373,71426,862,99802,224,128
3Jul 30, 2022 13:4330,61188,755,02326,937,35502,240,512
4Jul 30, 2022 13:4338,81560,729,32932,148,0002,009,0002,375,680
5Jul 30, 2022 13:4338,81757,106,85732,150,0002,009,0002,269,184
6Jul 30, 2022 13:4338,82062,192,72132,153,0002,009,0002,371,584
7Jul 30, 2022 13:4338,90867,788,36133,232,0001,007,0002,379,776
8Jul 30, 2022 13:4338,92056,506,07233,243,0001,007,0002,269,184
9Jul 30, 2022 13:4338,92258,205,05033,244,0001,007,0002,379,776
10Jul 30, 2022 13:4339,02055,296,23133,329,0001,009,0002,269,184
11Jul 30, 2022 13:4339,23956,868,46134,530,00002,269,184
12Jul 30, 2022 13:4339,25253,966,32134,542,00002,269,184