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 19:30Yuriy LyfenkoYuriy LyfenkoScore: 28,628Success
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:3028,31649,070,22522,925,0001,993,0002,265,088
2Dec 28, 2022 19:3028,38152,607,64022,977,0001,998,0002,396,160
3Dec 28, 2022 08:2828,43154,348,01223,018,0002,001,0002,265,088
4Dec 28, 2022 08:2828,43955,165,23924,025,0001,001,0002,392,064
5Dec 28, 2022 08:3028,44554,625,65523,030,0002,002,0002,392,064
6Dec 28, 2022 19:3028,44554,238,13623,030,0002,002,0002,265,088
7Dec 28, 2022 08:2828,44951,444,35224,034,0001,001,0002,392,064
8Dec 28, 2022 19:3028,45253,923,62423,035,0002,003,0002,527,232
9Dec 28, 2022 08:2828,45854,631,20724,042,0001,001,0002,265,088
10Dec 28, 2022 08:3028,46350,584,85824,046,0001,001,0002,265,088
11Dec 28, 2022 19:3028,47354,982,54023,052,0002,004,0002,269,184
12Dec 28, 2022 08:3028,47754,027,99023,056,0002,004,0002,265,088
13Dec 28, 2022 08:2828,48649,059,32023,063,0002,005,0002,265,088
14Dec 28, 2022 08:3028,48954,110,76423,065,0002,005,0002,387,968
15Dec 28, 2022 08:3028,59153,794,06923,148,0002,012,0002,527,232
16Dec 28, 2022 19:3028,60255,092,77024,164,0001,006,0002,392,064
17Dec 28, 2022 19:3028,61054,702,13924,170,0001,007,0002,383,872
18Dec 28, 2022 08:2828,62058,102,46223,172,0002,014,0002,383,872
19Dec 28, 2022 08:3028,62853,132,45623,178,0002,015,0002,265,088
20Dec 28, 2022 08:3028,65553,824,69923,199,0002,017,0002,265,088
21Dec 28, 2022 08:2828,70153,196,20025,257,00002,527,232
22Dec 28, 2022 08:3028,74149,879,48525,292,00002,527,232
23Dec 28, 2022 08:2828,76445,651,98224,300,0001,012,0002,387,968
24Dec 28, 2022 19:3028,81345,688,46125,355,00002,387,968
25Dec 28, 2022 08:2828,81746,694,88424,345,0001,014,0002,265,088
26Dec 28, 2022 19:3028,87655,124,09624,395,0001,016,0002,506,752
27Dec 28, 2022 19:3028,88052,126,39525,414,00002,265,088
28Dec 28, 2022 08:3029,10698,989,69325,612,97902,240,512
29Dec 28, 2022 08:3029,19999,372,99425,695,46002,232,320
30Dec 28, 2022 08:2829,200111,348,10225,696,12702,236,416
31Dec 28, 2022 19:3029,32297,695,25425,802,95202,232,320
32Dec 28, 2022 08:3029,34084,358,69625,819,42902,228,224
33Dec 28, 2022 19:3029,40595,279,96025,876,33102,228,224
34Dec 28, 2022 08:2829,445102,404,06925,911,48202,236,416
35Dec 28, 2022 19:3029,473102,025,58025,936,61302,232,320
36Dec 28, 2022 08:2829,48899,895,32325,949,73902,240,512