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 21, 2024 14:09Ivan BessonovIvan BessonovScore: 15,313Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 14:0915,09132,011,55511,237,0002,043,0002,347,008
2May 21, 2024 14:0915,15734,744,94611,286,0002,052,0002,342,912
3May 21, 2024 14:0915,18335,878,01611,306,0002,055,0002,351,104
4May 21, 2024 14:0915,19130,530,54413,368,00002,351,104
5May 21, 2024 14:0915,19130,287,33311,312,0002,056,0002,342,912
6May 21, 2024 14:0915,19236,946,78712,341,0001,028,0002,289,664
7May 21, 2024 14:0915,19435,624,20711,314,0002,057,0002,289,664
8May 21, 2024 14:0915,20332,891,30812,350,0001,029,0002,289,664
9May 21, 2024 14:0915,20931,241,55012,355,0001,029,0002,441,216
10May 21, 2024 14:0915,21435,423,57412,359,0001,029,0002,289,664
11May 21, 2024 14:0915,22732,218,18912,370,0001,030,0002,289,664
12May 21, 2024 14:0915,23937,756,57712,379,0001,031,0002,289,664
13May 21, 2024 14:0915,24130,950,01412,381,0001,031,0002,289,664
14May 21, 2024 14:0915,24234,596,43912,382,0001,031,0002,351,104
15May 21, 2024 14:0915,24830,036,51712,386,0001,032,0002,330,624
16May 21, 2024 14:0915,25732,050,97312,394,0001,032,0002,289,664
17May 21, 2024 14:0915,26027,862,31412,396,0001,033,0002,355,200
18May 21, 2024 14:0915,28441,206,24312,416,0001,034,0002,289,664
19May 21, 2024 14:0915,31330,298,74512,439,0001,036,0002,445,312
20May 21, 2024 14:0915,36530,664,05812,481,0001,040,0002,342,912
21May 21, 2024 14:0915,52262,231,63813,659,13502,207,744
22May 21, 2024 14:0915,57297,123,39613,703,73302,199,552
23May 21, 2024 14:0915,57435,012,08412,651,0001,054,0002,289,664
24May 21, 2024 14:0915,59477,058,80913,722,54502,199,552
25May 21, 2024 14:0915,61781,185,46313,743,03102,195,456
26May 21, 2024 14:0915,64657,100,45513,768,07002,199,552
27May 21, 2024 14:0915,73380,012,86213,845,20802,256,896
28May 21, 2024 14:0915,80330,550,66212,914,000993,0002,289,664
29May 21, 2024 14:0915,80342,111,54313,907,00002,289,664
30May 21, 2024 14:0915,88331,171,78811,981,0001,996,0002,289,664
31May 21, 2024 14:0915,92030,940,98912,009,0002,001,0002,355,200
32May 21, 2024 14:0915,94131,951,82112,024,0002,004,0002,289,664
33May 21, 2024 14:0916,02429,659,00512,087,0002,014,0002,289,664
34May 21, 2024 14:0916,15287,221,61714,213,51202,203,648
35May 21, 2024 14:0916,22864,538,13114,280,66502,203,648
36May 21, 2024 14:0916,23284,194,88614,284,18502,322,432