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 listDec 28, 2022 04:58Robert BurkeRobert BurkeScore: 18,810Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 04:5818,53775,037,38516,312,62302,228,224
2Dec 28, 2022 04:5818,54669,968,59016,320,55802,256,896
3Dec 28, 2022 04:5818,58875,723,94916,357,83402,232,320
4Dec 28, 2022 04:5818,66372,050,84316,423,68402,232,320
5Dec 28, 2022 04:5818,76332,702,02816,511,00002,514,944
6Dec 28, 2022 04:5818,77172,689,08616,518,17502,224,128
7Dec 28, 2022 04:5818,77539,524,24316,522,00002,514,944
8Dec 28, 2022 04:5818,78540,948,59416,531,00002,535,424
9Dec 28, 2022 04:5818,78935,940,70515,501,0001,033,0002,535,424
10Dec 28, 2022 04:5818,79135,068,50716,536,00002,404,352
11Dec 28, 2022 04:5818,79233,960,31515,504,0001,033,0002,535,424
12Dec 28, 2022 04:5818,80933,034,28615,518,0001,034,0002,490,368
13Dec 28, 2022 04:5818,81038,441,22216,553,00002,392,064
14Dec 28, 2022 04:5818,82032,433,72115,588,000974,0002,387,968
15Dec 28, 2022 04:5818,83632,397,63416,576,00002,387,968
16Dec 28, 2022 04:5818,84742,841,13716,585,00002,273,280
17Dec 28, 2022 04:5818,87857,892,27116,612,44602,244,608
18Dec 28, 2022 04:5818,89037,371,98116,623,00002,535,424
19Dec 28, 2022 04:5818,90338,092,94415,596,0001,039,0002,535,424
20Dec 28, 2022 04:5818,90931,230,02814,560,0002,080,0002,486,272
21Dec 28, 2022 04:5818,94239,329,98015,628,0001,041,0002,506,752
22Dec 28, 2022 04:5819,00245,438,00716,722,00002,383,872
23Dec 28, 2022 04:5819,18541,419,46715,890,000993,0002,273,280
24Dec 28, 2022 04:5819,20333,942,45814,911,0001,988,0002,396,160