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 listMay 19, 2024 13:52Ivan BessonovIvan BessonovScore: 16,888Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 13:0716,33535,172,23413,349,0001,026,0002,289,664
2May 19, 2024 13:3716,34833,884,06413,359,0001,027,0002,289,664
3May 19, 2024 13:0716,34932,059,95313,360,0001,027,0002,342,912
4May 19, 2024 13:3716,37232,336,39413,378,0001,029,0002,289,664
5May 19, 2024 13:5216,37248,400,40413,378,0001,029,0002,289,664
6May 19, 2024 13:0716,38231,032,06813,387,0001,029,0002,342,912
7May 19, 2024 13:5216,38634,297,57413,390,0001,030,0002,289,664
8May 19, 2024 13:3716,39145,006,44213,394,0001,030,0002,338,816
9May 19, 2024 13:0716,39237,403,51413,395,0001,030,0002,347,008
10May 19, 2024 13:0716,39233,849,84313,395,0001,030,0002,347,008
11May 19, 2024 13:0716,39735,127,33113,399,0001,030,0002,347,008
12May 19, 2024 13:0716,40036,668,54113,402,0001,030,0002,289,664
13May 19, 2024 13:0716,40732,474,04513,407,0001,031,0002,289,664
14May 19, 2024 13:0716,41040,780,69214,441,00002,289,664
15May 19, 2024 13:5216,41337,308,88413,412,0001,031,0002,338,816
16May 19, 2024 13:5216,41937,290,47813,417,0001,032,0002,347,008
17May 19, 2024 13:3716,42831,714,38113,425,0001,032,0002,342,912
18May 19, 2024 13:0716,43535,637,01713,430,0001,033,0002,289,664
19May 19, 2024 13:0716,44232,716,13514,469,00002,289,664
20May 19, 2024 13:0716,45229,452,24313,444,0001,034,0002,289,664
21May 19, 2024 13:0716,46831,816,69813,457,0001,035,0002,342,912
22May 19, 2024 13:3716,47231,021,41913,460,0001,035,0002,289,664
23May 19, 2024 13:3716,49138,083,17513,476,0001,036,0002,347,008
24May 19, 2024 13:0716,80131,772,20813,729,0001,056,0002,334,720
25May 19, 2024 13:0716,88841,624,58012,880,0001,981,0002,289,664
26May 19, 2024 13:5216,94347,726,22913,916,000994,0002,289,664
27May 19, 2024 13:0716,94835,332,61812,926,0001,988,0002,285,568
28May 19, 2024 13:0716,97433,710,86912,946,0001,991,0002,289,664
29May 19, 2024 13:5216,99933,412,18512,965,0001,994,0002,289,664
30May 19, 2024 13:3717,00832,125,54713,970,000997,0002,289,664
31May 19, 2024 13:5217,01737,820,64613,977,000998,0002,289,664
32May 19, 2024 13:3717,02436,120,10612,984,0001,997,0002,334,720
33May 19, 2024 13:3717,03335,750,94912,991,0001,998,0002,285,568
34May 19, 2024 13:5217,03336,684,06412,991,0001,998,0002,285,568
35May 19, 2024 13:0717,05932,321,14713,011,0002,001,0002,347,008
36May 19, 2024 13:5217,05936,360,53413,011,0002,001,0002,289,664
37May 19, 2024 13:5217,252104,114,68415,181,98602,256,896
38May 19, 2024 13:5217,27170,667,41315,198,37302,191,360
39May 19, 2024 13:3717,58579,309,66515,474,74102,191,360
40May 19, 2024 13:0717,69980,811,31115,574,68902,195,456
41May 19, 2024 13:0717,72188,212,57615,594,89202,199,552
42May 19, 2024 13:3717,75088,109,33015,620,33602,195,456
43May 19, 2024 13:5217,79082,140,89615,654,84202,211,840
44May 19, 2024 13:0717,790118,377,66915,655,27302,199,552
45May 19, 2024 13:3717,79378,704,89315,657,80202,203,648
46May 19, 2024 13:0717,80089,862,84215,663,81802,203,648
47May 19, 2024 13:0717,84962,432,69615,706,86802,191,360
48May 19, 2024 13:0717,90977,857,30415,760,17202,326,528