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:18Ivan BessonovIvan BessonovScore: 17,233Success
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:1817,07332,118,66113,021,0002,003,0002,306,048
2May 18, 2024 19:1817,07433,036,58913,022,0002,003,0002,289,664
3May 18, 2024 19:1817,08132,212,75013,027,0002,004,0002,289,664
4May 18, 2024 19:1817,08343,016,20613,029,0002,004,0002,289,664
5May 18, 2024 19:1817,08538,775,82413,031,0002,004,0002,281,472
6May 18, 2024 19:1817,11031,578,68313,050,0002,007,0002,289,664
7May 18, 2024 19:1817,11034,590,82314,054,0001,003,0002,289,664
8May 18, 2024 19:1817,12332,180,74813,059,0002,009,0002,285,568
9May 18, 2024 19:1817,13243,905,91013,066,0002,010,0002,289,664
10May 18, 2024 19:1817,16742,920,15913,093,0002,014,0002,289,664
11May 18, 2024 19:1817,17734,883,51213,101,0002,015,0002,285,568
12May 18, 2024 19:1817,18538,207,48514,115,0001,008,0002,383,872
13May 18, 2024 19:1817,23335,478,29814,154,0001,011,0002,297,856
14May 18, 2024 19:1817,25575,470,63015,183,99402,293,760
15May 18, 2024 19:1817,28288,455,20615,207,87302,289,664
16May 18, 2024 19:1817,39193,214,63515,304,02602,289,664
17May 18, 2024 19:1817,78639,134,09414,609,0001,043,0002,392,064
18May 18, 2024 19:1817,84433,131,47615,703,00002,289,664
19May 18, 2024 19:1818,02481,410,89215,860,93402,297,856
20May 18, 2024 19:1818,04841,722,23713,897,0001,985,0002,289,664
21May 18, 2024 19:1818,07543,097,99213,918,0001,988,0002,301,952
22May 18, 2024 19:1818,08645,912,30714,922,000994,0002,301,952
23May 18, 2024 19:1818,30058,405,73516,103,81302,281,472
24May 18, 2024 19:1818,31977,940,78816,120,59002,252,800