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 13, 2024 09:13Ivan BessonovIvan BessonovScore: 35,348Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 09:1331,923117,020,85628,091,84402,256,896
2May 13, 2024 09:1331,939100,367,99328,106,26102,252,800
3May 13, 2024 09:2131,97590,467,27128,138,07902,265,088
4May 13, 2024 09:1332,02899,858,64228,184,87902,260,992
5May 13, 2024 09:2132,02887,550,19528,184,77402,265,088
6May 13, 2024 09:2132,080102,461,01528,230,37702,252,800
7May 13, 2024 09:1335,22755,693,35330,000,0001,000,0002,277,376
8May 13, 2024 09:2135,28254,493,87729,045,0002,003,0002,289,664
9May 13, 2024 09:2135,28653,779,15529,049,0002,003,0002,277,376
10May 13, 2024 09:2135,31054,637,89430,071,0001,002,0002,289,664
11May 13, 2024 09:2135,31860,361,21830,078,0001,002,0002,289,664
12May 13, 2024 09:1335,31855,885,75030,078,0001,002,0002,269,184
13May 13, 2024 09:1335,34857,351,34029,100,0002,006,0002,289,664
14May 13, 2024 09:2135,36153,756,92430,115,0001,003,0002,387,968
15May 13, 2024 09:2135,37052,920,66229,118,0002,008,0002,289,664
16May 13, 2024 09:1335,37052,871,08829,118,0002,008,0002,289,664
17May 13, 2024 09:2135,38358,272,03629,129,0002,008,0002,289,664
18May 13, 2024 09:1335,40152,692,47429,144,0002,009,0002,289,664
19May 13, 2024 09:1335,40654,372,06830,152,0001,005,0002,289,664
20May 13, 2024 09:1335,46853,202,60229,199,0002,013,0002,289,664
21May 13, 2024 09:1335,48353,019,44830,218,0001,007,0002,269,184
22May 13, 2024 09:2135,48654,239,62029,214,0002,014,0002,269,184
23May 13, 2024 09:2135,60655,434,04229,312,0002,021,0002,289,664
24May 13, 2024 09:1335,67363,548,34729,367,0002,025,0002,289,664