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:27Robert BurkeRobert BurkeScore: 21,685Success
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:2718,10077,783,15715,928,08802,240,512
2Oct 4, 2023 12:2718,12872,086,74315,952,94002,228,224
3Oct 4, 2023 12:2718,18756,366,65416,004,16802,236,416
4Oct 4, 2023 12:2721,56048,992,66616,976,0001,997,0002,490,368
5Oct 4, 2023 12:2721,64440,625,15017,042,0002,005,0002,273,280
6Oct 4, 2023 12:2721,65638,316,28817,051,0002,006,0002,392,064
7Oct 4, 2023 12:2721,68544,150,31418,079,0001,004,0002,396,160
8Oct 4, 2023 12:2721,74732,945,67818,130,0001,007,0002,387,968
9Oct 4, 2023 12:2721,74941,171,02717,125,0002,014,0002,486,272
10Oct 4, 2023 12:2721,75240,009,70516,120,0003,022,0002,392,064
11Oct 4, 2023 12:2721,79836,793,05718,173,0001,009,0002,273,280
12Oct 4, 2023 12:2721,84740,996,23816,190,0003,035,0002,396,160