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 4, 2023 12:19Robert BurkeRobert BurkeScore: 21,722Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:1918,34581,417,10716,143,22002,236,416
2Oct 4, 2023 12:1918,35684,446,61216,153,44502,236,416
3Oct 4, 2023 12:1918,40573,770,00016,196,71202,228,224
4Oct 4, 2023 12:1921,61742,124,08718,022,0001,001,0002,396,160
5Oct 4, 2023 12:1921,67541,388,92817,067,0002,007,0002,396,160
6Oct 4, 2023 12:1921,71644,384,86018,105,0001,005,0002,498,560
7Oct 4, 2023 12:1921,72240,564,89518,109,0001,006,0002,392,064
8Oct 4, 2023 12:1921,72431,295,89118,111,0001,006,0002,396,160
9Oct 4, 2023 12:1921,73549,130,49117,114,0002,013,0002,400,256
10Oct 4, 2023 12:1921,80534,692,10118,179,0001,009,0002,490,368
11Oct 4, 2023 12:1921,81040,467,51918,183,0001,010,0002,273,280
12Oct 4, 2023 12:1922,09145,792,91017,394,0002,046,0002,396,160