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:54Robert BurkeRobert BurkeScore: 18,598Success
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:5418,42333,751,00615,199,0001,013,0002,273,280
2Dec 28, 2022 04:5418,43032,258,33114,191,0002,027,0002,392,064
3Dec 28, 2022 04:5418,43338,577,68513,180,0003,041,0002,535,424
4Dec 28, 2022 04:5418,45030,925,74014,207,0002,029,0002,490,368
5Dec 28, 2022 04:5418,47040,488,38315,239,0001,015,0002,392,064
6Dec 28, 2022 04:5418,51528,820,23015,275,0001,018,0002,273,280
7Dec 28, 2022 04:5418,54035,054,20615,296,0001,019,0002,400,256
8Dec 28, 2022 04:5418,56733,607,15814,297,0002,042,0002,400,256
9Dec 28, 2022 04:5418,56835,290,46515,319,0001,021,0002,387,968
10Dec 28, 2022 04:5418,58233,622,68115,330,0001,022,0002,396,160
11Dec 28, 2022 04:5418,59332,240,83415,340,0001,022,0002,273,280
12Dec 28, 2022 04:5418,59838,162,46915,344,0001,022,0002,273,280
13Dec 28, 2022 04:5418,59880,854,50816,366,06402,236,416
14Dec 28, 2022 04:5418,60371,978,89416,370,35702,228,224
15Dec 28, 2022 04:5418,60637,995,54416,373,00002,387,968
16Dec 28, 2022 04:5418,60829,052,77715,352,0001,023,0002,387,968
17Dec 28, 2022 04:5418,65340,490,90516,415,00002,383,872
18Dec 28, 2022 04:5418,66934,052,93916,429,00002,486,272
19Dec 28, 2022 04:5418,68333,336,00116,441,00002,396,160
20Dec 28, 2022 04:5418,68836,329,38115,418,0001,027,0002,383,872
21Dec 28, 2022 04:5418,69274,268,59816,448,83702,220,032
22Dec 28, 2022 04:5418,70868,690,45116,462,95602,224,128
23Dec 28, 2022 04:5418,71055,266,30416,465,21102,228,224
24Dec 28, 2022 04:5418,76690,457,25516,514,25402,224,128