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 15:26Ivan BessonovIvan BessonovScore: 19,891Success
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 15:2619,26946,335,30715,960,000997,0002,289,664
2May 18, 2024 15:2619,26939,607,07815,960,000997,0002,310,144
3May 18, 2024 15:2619,27741,282,55414,969,0001,995,0002,289,664
4May 18, 2024 15:2619,28040,298,16514,970,0001,996,0002,289,664
5May 18, 2024 15:2619,28245,474,61414,972,0001,996,0002,306,048
6May 18, 2024 15:2619,28943,951,45614,977,0001,997,0002,289,664
7May 18, 2024 15:2619,30035,124,82514,986,0001,998,0002,289,664
8May 18, 2024 15:2619,30248,034,29614,988,0001,998,0002,306,048
9May 18, 2024 15:2619,31842,163,64215,000,0002,000,0002,314,240
10May 18, 2024 15:2619,32834,401,93015,008,0002,001,0002,289,664
11May 18, 2024 15:2619,36442,459,41915,036,0002,004,0002,314,240
12May 18, 2024 15:2619,37742,291,60815,046,0002,006,0002,289,664
13May 18, 2024 15:2619,89133,884,88217,504,00002,396,160
14May 18, 2024 15:2619,95141,197,18616,525,0001,032,0002,306,048
15May 18, 2024 15:2620,03635,703,96616,595,0001,037,0002,306,048
16May 18, 2024 15:2620,04745,350,52416,604,0001,037,0002,301,952
17May 18, 2024 15:2620,07242,459,53416,624,0001,039,0002,289,664
18May 18, 2024 15:2620,07346,116,96616,625,0001,039,0002,310,144
19May 18, 2024 15:2620,31781,208,93917,879,09302,289,664
20May 18, 2024 15:2620,35274,389,24917,909,95702,252,800
21May 18, 2024 15:2620,39086,631,00417,943,58902,285,568
22May 18, 2024 15:2620,82180,178,95118,322,09202,289,664
23May 18, 2024 15:2620,90794,582,27218,398,52502,281,472
24May 18, 2024 15:2621,06388,620,00018,535,33302,281,472