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 18, 2024 19:50Ivan BessonovIvan BessonovScore: 16,997Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 19:4916,92433,556,29113,901,000992,0002,318,336
2May 18, 2024 19:4916,93635,809,26112,917,0001,987,0002,289,664
3May 18, 2024 19:4916,94446,059,33913,917,000994,0002,326,528
4May 18, 2024 19:4916,94441,016,03913,917,000994,0002,289,664
5May 18, 2024 19:4916,95038,441,48112,928,0001,988,0002,318,336
6May 18, 2024 19:4916,96135,534,95512,936,0001,990,0002,289,664
7May 18, 2024 19:4916,96531,183,29713,863,0001,066,0002,289,664
8May 18, 2024 19:4916,96730,762,10112,941,0001,990,0002,322,432
9May 18, 2024 19:5016,97533,145,16714,938,00002,433,024
10May 18, 2024 19:5016,97630,799,10913,872,0001,067,0002,322,432
11May 18, 2024 19:4916,97836,564,06913,945,000996,0002,289,664
12May 18, 2024 19:4916,97834,923,39113,945,000996,0002,326,528
13May 18, 2024 19:4916,98032,481,58612,950,0001,992,0002,420,736
14May 18, 2024 19:5016,98138,629,12912,951,0001,992,0002,318,336
15May 18, 2024 19:4916,98436,052,66812,954,0001,992,0002,285,568
16May 18, 2024 19:5016,99131,666,11912,959,0001,993,0002,289,664
17May 18, 2024 19:4916,99531,672,43613,959,000997,0002,289,664
18May 18, 2024 19:5016,99532,381,54413,959,000997,0002,318,336
19May 18, 2024 19:5016,99742,968,16512,963,0001,994,0002,326,528
20May 18, 2024 19:4917,00238,473,47613,965,000997,0002,318,336
21May 18, 2024 19:4917,00547,248,15313,967,000997,0002,326,528
22May 18, 2024 19:5017,01732,115,66612,979,0001,996,0002,289,664
23May 18, 2024 19:4917,03338,881,45312,991,0001,998,0002,289,664
24May 18, 2024 19:4917,54088,462,80215,435,05702,306,048
25May 18, 2024 19:4917,56193,413,94615,453,46202,174,976
26May 18, 2024 19:4917,56559,026,56715,456,92902,301,952
27May 18, 2024 19:4917,89546,258,37414,699,0001,049,0002,289,664
28May 18, 2024 19:5017,93939,840,66815,786,00002,322,432
29May 18, 2024 19:4917,94032,725,64315,787,00002,289,664
30May 18, 2024 19:5017,98382,421,77615,825,21002,174,976
31May 18, 2024 19:5018,08832,833,27614,923,000994,0002,289,664
32May 18, 2024 19:5018,09760,332,34715,925,72502,310,144
33May 18, 2024 19:4918,20779,948,83616,022,52002,310,144
34May 18, 2024 19:5018,40185,564,90616,192,80702,252,800
35May 18, 2024 19:4918,47190,740,94416,254,69802,301,952
36May 18, 2024 19:4918,53387,247,89716,309,21902,179,072