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: 21,970Success
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,27192,093,22716,078,70702,232,320
2Oct 4, 2023 12:3018,27174,705,56216,078,38202,228,224
3Oct 4, 2023 12:3018,29984,083,31416,103,14902,215,936
4Oct 4, 2023 12:3021,83137,758,48918,200,0001,011,0002,396,160
5Oct 4, 2023 12:3021,83141,619,03217,189,0002,022,0002,535,424
6Oct 4, 2023 12:3021,83440,992,49817,192,0002,022,0002,396,160
7Oct 4, 2023 12:3021,97046,415,59018,317,0001,017,0002,387,968
8Oct 4, 2023 12:3021,97748,388,73319,340,00002,273,280
9Oct 4, 2023 12:3022,03050,466,52019,386,00002,396,160
10Oct 4, 2023 12:3022,03341,853,49118,369,0001,020,0002,404,352
11Oct 4, 2023 12:3022,22438,320,48118,528,0001,029,0002,396,160
12Oct 4, 2023 12:3022,26540,264,42518,562,0001,031,0002,535,424