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 25, 2023 19:22gchebanovgchebanovScore: 40,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 19:2235,67598,558,57631,393,78502,306,048
2Jul 25, 2023 19:2235,832105,107,62531,532,04302,293,760
3Jul 25, 2023 19:2235,875105,390,43931,569,64302,285,568
4Jul 25, 2023 19:2240,32656,660,83834,474,0001,013,0002,330,624
5Jul 25, 2023 19:2240,39263,123,83234,530,0001,015,0002,396,160
6Jul 25, 2023 19:2240,39457,429,24933,516,0002,031,0002,285,568
7Jul 25, 2023 19:2240,41057,726,73132,513,0003,048,0002,375,680
8Jul 25, 2023 19:2240,43956,613,18933,553,0002,033,0002,441,216
9Jul 25, 2023 19:2240,49457,946,78533,599,0002,036,0002,330,624
10Jul 25, 2023 19:2240,55567,951,02934,669,0001,019,0002,355,200
11Jul 25, 2023 19:2240,55567,281,15833,649,0002,039,0002,453,504
12Jul 25, 2023 19:2240,60063,006,79934,708,0001,020,0002,449,408