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 20, 2024 20:12Ivan BessonovIvan BessonovScore: 15,381Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:1115,23629,870,73612,377,0001,031,0002,289,664
2May 20, 2024 20:1215,25731,295,20613,426,00002,289,664
3May 20, 2024 20:1215,27034,016,85912,405,0001,033,0002,289,664
4May 20, 2024 20:1215,28532,316,43312,417,0001,034,0002,289,664
5May 20, 2024 20:1115,29542,940,61913,460,00002,338,816
6May 20, 2024 20:1115,30329,557,81613,467,00002,289,664
7May 20, 2024 20:1115,32335,531,57912,447,0001,037,0002,289,664
8May 20, 2024 20:1115,33931,767,31212,460,0001,038,0002,289,664
9May 20, 2024 20:1215,35228,236,18512,471,0001,039,0002,285,568
10May 20, 2024 20:1215,36830,516,84712,484,0001,040,0002,289,664
11May 20, 2024 20:1115,37632,890,09312,491,0001,040,0002,355,200
12May 20, 2024 20:1215,37730,961,84913,532,00002,289,664
13May 20, 2024 20:1115,38133,947,18812,494,0001,041,0002,289,664
14May 20, 2024 20:1215,39434,380,93712,505,0001,042,0002,330,624
15May 20, 2024 20:1215,54286,846,62013,676,61802,195,456
16May 20, 2024 20:1115,79981,762,80113,903,31802,199,552
17May 20, 2024 20:1215,92232,846,09512,010,0002,001,0002,347,008
18May 20, 2024 20:1215,99964,082,53714,078,92302,203,648
19May 20, 2024 20:1115,99930,507,40112,068,0002,011,0002,289,664
20May 20, 2024 20:1216,00529,661,78713,078,0001,006,0002,289,664
21May 20, 2024 20:1116,08476,550,73514,153,65802,199,552
22May 20, 2024 20:1216,13081,867,12714,194,28802,195,456
23May 20, 2024 20:1116,20765,877,98414,262,07002,326,528
24May 20, 2024 20:1116,22031,980,46312,235,0002,039,0002,338,816