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 03:19Robert BurkeRobert BurkeScore: 19,205Success
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 03:1718,54867,162,12216,321,80202,228,224
2Dec 28, 2022 03:1718,57974,157,00216,349,33802,228,224
3Dec 28, 2022 03:1918,60774,709,54716,374,56802,236,416
4Dec 28, 2022 03:1718,61877,986,35416,384,06502,224,128
5Dec 28, 2022 03:1918,68472,455,35716,442,05102,232,320
6Dec 28, 2022 03:1918,79376,494,96616,538,22902,236,416
7Dec 28, 2022 03:1919,05738,223,04116,770,00002,392,064
8Dec 28, 2022 03:1719,08041,148,48816,790,00002,387,968
9Dec 28, 2022 03:1719,14738,414,44015,858,000991,0002,396,160
10Dec 28, 2022 03:1719,19833,265,40714,907,0001,987,0002,535,424
11Dec 28, 2022 03:1719,20341,133,28015,905,000994,0002,535,424
12Dec 28, 2022 03:1919,20332,957,24615,905,000994,0002,535,424
13Dec 28, 2022 03:1919,20535,995,48714,912,0001,988,0002,535,424
14Dec 28, 2022 03:1719,20842,822,91515,909,000994,0002,535,424
15Dec 28, 2022 03:1919,21544,675,50115,915,000994,0002,400,256
16Dec 28, 2022 03:1919,21531,518,84215,915,000994,0002,506,752
17Dec 28, 2022 03:1919,21636,268,51514,921,0001,989,0002,400,256
18Dec 28, 2022 03:1919,21641,982,98914,921,0001,989,0002,400,256
19Dec 28, 2022 03:1719,22230,256,62515,920,000995,0002,273,280
20Dec 28, 2022 03:1919,22552,198,30515,923,000995,0002,535,424
21Dec 28, 2022 03:1719,22832,883,39314,931,0001,990,0002,490,368
22Dec 28, 2022 03:1919,23238,136,30514,933,0001,991,0002,273,280
23Dec 28, 2022 03:1719,23940,075,41915,935,000995,0002,273,280
24Dec 28, 2022 03:1719,38530,897,36814,049,0003,010,0002,387,968