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 08:19Robert BurkeRobert BurkeScore: 18,176Success
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 08:1918,08231,751,07514,918,000994,0002,396,160
2Dec 28, 2022 08:1918,08838,547,30513,928,0001,989,0002,535,424
3Dec 28, 2022 08:1918,09137,090,61513,930,0001,990,0002,273,280
4Dec 28, 2022 08:1918,09539,969,29214,929,000995,0002,400,256
5Dec 28, 2022 08:2018,10244,298,30914,935,000995,0002,273,280
6Dec 28, 2022 08:2018,11337,671,74814,943,000996,0002,535,424
7Dec 28, 2022 08:2018,11945,550,85514,949,000996,0002,400,256
8Dec 28, 2022 08:2018,14136,676,11314,967,000997,0002,273,280
9Dec 28, 2022 08:2018,14740,090,33913,973,0001,996,0002,273,280
10Dec 28, 2022 08:2018,16437,626,20913,986,0001,998,0002,273,280
11Dec 28, 2022 08:1918,16835,800,57313,990,0001,998,0002,535,424
12Dec 28, 2022 08:2018,17636,076,82113,996,0001,999,0002,392,064
13Dec 28, 2022 08:2018,17629,942,86514,996,000999,0002,387,968
14Dec 28, 2022 08:1918,18346,093,61715,001,0001,000,0002,535,424
15Dec 28, 2022 08:2018,18641,441,73713,004,0003,000,0002,387,968
16Dec 28, 2022 08:1918,20037,821,82815,015,0001,001,0002,392,064
17Dec 28, 2022 08:1918,20237,307,33714,016,0002,002,0002,273,280
18Dec 28, 2022 08:1918,22033,541,58615,032,0001,002,0002,387,968
19Dec 28, 2022 08:2018,44478,760,25216,231,15602,232,320
20Dec 28, 2022 08:2018,48689,981,82016,267,73302,228,224
21Dec 28, 2022 08:1918,50586,201,53416,284,77102,236,416
22Dec 28, 2022 08:1918,70676,639,84716,460,87202,232,320
23Dec 28, 2022 08:1918,70886,192,37416,462,65102,236,416
24Dec 28, 2022 08:2018,71484,731,64916,468,06502,236,416