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 20:24Ivan BessonovIvan BessonovScore: 17,101Success
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 20:2016,94936,228,72213,921,000994,0002,289,664
2May 18, 2024 20:2016,98135,897,33213,876,0001,067,0002,330,624
3May 18, 2024 20:2016,98441,936,38613,879,0001,067,0002,326,528
4May 18, 2024 20:2416,99144,688,96713,956,000996,0002,289,664
5May 18, 2024 20:2016,99941,752,99512,965,0001,994,0002,289,664
6May 18, 2024 20:2017,00336,330,28412,968,0001,995,0002,289,664
7May 18, 2024 20:2017,01141,646,77512,974,0001,996,0002,310,144
8May 18, 2024 20:2417,01641,298,19912,978,0001,996,0002,289,664
9May 18, 2024 20:2017,02341,245,59212,983,0001,997,0002,326,528
10May 18, 2024 20:2417,04132,589,52513,997,000999,0002,289,664
11May 18, 2024 20:2417,05136,432,60813,005,0002,000,0002,289,664
12May 18, 2024 20:2417,05741,909,14613,009,0002,001,0002,326,528
13May 18, 2024 20:2017,10133,126,42213,043,0002,006,0002,289,664
14May 18, 2024 20:2017,31182,960,68415,233,27502,179,072
15May 18, 2024 20:2417,34695,202,97015,264,76902,306,048
16May 18, 2024 20:2017,38884,535,24415,301,31202,179,072
17May 18, 2024 20:2417,67980,939,92515,557,30102,179,072
18May 18, 2024 20:2417,68436,155,14314,525,0001,037,0002,289,664
19May 18, 2024 20:2417,91531,113,70914,714,0001,051,0002,322,432
20May 18, 2024 20:2418,03831,474,94713,889,0001,984,0002,322,432
21May 18, 2024 20:2418,05244,678,54213,901,0001,985,0002,289,664
22May 18, 2024 20:2018,07539,229,34414,912,000994,0002,326,528
23May 18, 2024 20:2418,22682,672,68716,038,51702,297,856
24May 18, 2024 20:2018,26490,459,15216,072,27002,293,760