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 24, 2023 14:52gchebanovgchebanovScore: 35,340Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 14:5235,21055,202,01629,986,000999,0002,371,584
2Jul 24, 2023 14:5235,27254,595,62128,036,0003,003,0002,494,464
3Jul 24, 2023 14:5235,28154,376,61429,044,0002,003,0002,310,144
4Jul 24, 2023 14:5235,30052,562,24629,060,0002,004,0002,371,584
5Jul 24, 2023 14:5235,33353,589,16826,078,0005,015,0002,502,656
6Jul 24, 2023 14:5235,33862,493,75128,088,0003,009,0002,310,144
7Jul 24, 2023 14:5235,34053,688,46328,090,0003,009,0002,301,952
8Jul 24, 2023 14:5235,38554,153,12528,126,0003,013,0002,498,560
9Jul 24, 2023 14:5235,64457,216,95529,344,0002,023,0002,351,104
10Jul 24, 2023 14:5236,631101,867,27332,235,52002,289,664
11Jul 24, 2023 14:5236,77897,194,93132,364,91902,285,568
12Jul 24, 2023 14:5236,846102,538,21932,424,72602,285,568