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 listOct 2, 2023 19:12apuxbtapuxbtScore: 32,576Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 19:1232,01181,257,41928,169,67702,236,416
2Oct 2, 2023 19:1232,12897,012,94828,272,89802,244,608
3Oct 2, 2023 19:1232,21299,827,66228,346,16102,228,224
4Oct 2, 2023 19:1232,43950,109,61927,527,0001,019,0002,269,184
5Oct 2, 2023 19:1232,47352,142,52026,535,0002,041,0002,375,680
6Oct 2, 2023 19:1232,51050,706,41428,609,00002,375,680
7Oct 2, 2023 19:1232,57654,943,58325,596,0003,071,0002,510,848
8Oct 2, 2023 19:1232,57757,227,13127,645,0001,023,0002,506,752
9Oct 2, 2023 19:1232,59053,626,25426,631,0002,048,0002,514,944
10Oct 2, 2023 19:1232,83961,189,52526,905,0001,993,0002,514,944
11Oct 2, 2023 19:1232,84253,417,16926,908,0001,993,0002,355,200
12Oct 2, 2023 19:1232,86856,769,18027,891,0001,033,0002,510,848