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:30Robert BurkeRobert BurkeScore: 22,736Success
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:3018,80775,802,71216,549,84702,236,416
2Oct 4, 2023 12:3018,84751,506,64116,584,95102,232,320
3Oct 4, 2023 12:3018,95175,097,43416,676,88102,220,032
4Oct 4, 2023 12:3022,68345,412,17619,961,00002,535,424
5Oct 4, 2023 12:3022,72742,142,05318,000,0002,000,0002,486,272
6Oct 4, 2023 12:3022,73439,406,08918,006,0002,000,0002,400,256
7Oct 4, 2023 12:3022,73648,581,83518,008,0002,000,0002,400,256
8Oct 4, 2023 12:3022,75143,177,92418,019,0002,002,0002,396,160
9Oct 4, 2023 12:3022,75941,377,63317,024,0003,004,0002,535,424
10Oct 4, 2023 12:3022,79041,460,62419,053,0001,002,0002,396,160
11Oct 4, 2023 12:3022,81843,618,23319,076,0001,004,0002,535,424
12Oct 4, 2023 12:3022,89043,109,10618,129,0002,014,0002,482,176