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 22, 2024 08:06Ivan BessonovIvan BessonovScore: 15,106Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2024 08:0514,95530,658,84711,136,0002,024,0002,355,200
2May 22, 2024 08:2614,95830,258,34411,138,0002,025,0002,285,568
3May 22, 2024 08:0614,96330,719,34612,155,0001,012,0002,465,792
4May 22, 2024 08:0514,96829,312,00611,146,0002,026,0002,351,104
5May 22, 2024 08:2614,98133,451,39111,155,0002,028,0002,355,200
6May 22, 2024 08:0514,98635,060,14212,174,0001,014,0002,289,664
7May 22, 2024 08:0515,03230,199,57811,193,0002,035,0002,351,104
8May 22, 2024 08:0515,03334,532,39412,212,0001,017,0002,289,664
9May 22, 2024 08:0615,03434,971,02212,213,0001,017,0002,351,104
10May 22, 2024 08:0515,03534,165,98012,214,0001,017,0002,289,664
11May 22, 2024 08:2615,04330,618,01811,202,0002,036,0002,289,664
12May 22, 2024 08:2615,04730,089,06411,204,0002,037,0002,285,568
13May 22, 2024 08:0515,04932,616,43111,206,0002,037,0002,289,664
14May 22, 2024 08:0515,05630,608,80512,230,0001,019,0002,351,104
15May 22, 2024 08:0615,06630,694,22011,219,0002,039,0002,289,664
16May 22, 2024 08:2615,06631,158,85711,219,0002,039,0002,289,664
17May 22, 2024 08:0615,06830,475,96912,240,0001,020,0002,285,568
18May 22, 2024 08:0515,06830,014,54111,220,0002,040,0002,285,568
19May 22, 2024 08:0515,07033,565,91911,222,0002,040,0002,289,664
20May 22, 2024 08:0515,07730,533,13011,227,0002,041,0002,289,664
21May 22, 2024 08:0515,08336,899,60612,252,0001,021,0002,289,664
22May 22, 2024 08:0615,08437,796,04411,232,0002,042,0002,289,664
23May 22, 2024 08:0515,09434,669,28011,240,0002,043,0002,289,664
24May 22, 2024 08:0615,09530,199,86612,263,0001,021,0002,289,664
25May 22, 2024 08:0515,10627,946,28111,248,0002,045,0002,289,664
26May 22, 2024 08:2615,13830,327,06011,272,0002,049,0002,281,472
27May 22, 2024 08:0515,14231,308,72711,275,0002,050,0002,363,392
28May 22, 2024 08:0515,16430,086,79411,291,0002,053,0002,285,568
29May 22, 2024 08:0515,43475,115,94613,582,15702,207,744
30May 22, 2024 08:2615,52355,159,90513,659,84102,260,992
31May 22, 2024 08:0515,52570,344,73513,661,56702,203,648
32May 22, 2024 08:2615,53493,630,49113,669,96202,207,744
33May 22, 2024 08:2615,56746,095,15413,699,00002,289,664
34May 22, 2024 08:0615,58830,731,23612,662,0001,055,0002,424,832
35May 22, 2024 08:0615,65530,698,38212,717,0001,059,0002,285,568
36May 22, 2024 08:0515,75941,677,84611,887,0001,981,0002,289,664
37May 22, 2024 08:0515,76931,706,95011,895,0001,982,0002,359,296
38May 22, 2024 08:2615,80730,010,17112,917,000993,0002,351,104
39May 22, 2024 08:2615,81435,006,12011,928,0001,988,0002,289,664
40May 22, 2024 08:0615,85031,650,18311,956,0001,992,0002,338,816
41May 22, 2024 08:0616,02368,028,85914,099,83402,342,912
42May 22, 2024 08:2616,04682,846,86514,120,40502,203,648
43May 22, 2024 08:0616,06066,537,49314,132,45202,191,360
44May 22, 2024 08:0516,06559,994,11914,137,60102,330,624
45May 22, 2024 08:0516,06760,097,08914,139,15002,195,456
46May 22, 2024 08:0516,08360,523,71614,152,66802,334,720
47May 22, 2024 08:0616,35464,599,60814,391,63002,211,840
48May 22, 2024 08:0516,49291,091,77414,512,72102,211,840