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 14:05Ivan BessonovIvan BessonovScore: 19,702Success
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 14:0519,50039,505,23615,142,0002,018,0002,301,952
2May 18, 2024 14:0419,50737,642,47015,147,0002,019,0002,289,664
3May 18, 2024 14:0419,57039,322,17415,196,0002,026,0002,297,856
4May 18, 2024 14:0519,57744,841,28316,215,0001,013,0002,289,664
5May 18, 2024 14:0519,61043,463,18716,242,0001,015,0002,289,664
6May 18, 2024 14:0419,63045,889,46715,242,0002,032,0002,289,664
7May 18, 2024 14:0419,63040,700,19415,242,0002,032,0002,289,664
8May 18, 2024 14:0419,64351,172,20715,253,0002,033,0002,301,952
9May 18, 2024 14:0519,65641,746,78616,280,0001,017,0002,297,856
10May 18, 2024 14:0519,66040,205,57415,266,0002,035,0002,301,952
11May 18, 2024 14:0419,66433,644,99316,287,0001,017,0002,289,664
12May 18, 2024 14:0519,68940,049,75215,288,0002,038,0002,289,664
13May 18, 2024 14:0419,70242,018,91616,319,0001,019,0002,306,048
14May 18, 2024 14:0419,73636,667,11216,347,0001,021,0002,301,952
15May 18, 2024 14:0420,19246,192,99016,724,0001,045,0002,289,664
16May 18, 2024 14:0520,35344,148,87415,921,0001,990,0002,289,664
17May 18, 2024 14:0520,36445,238,41015,929,0001,991,0002,289,664
18May 18, 2024 14:0520,41740,981,75015,971,0001,996,0002,301,952
19May 18, 2024 14:0521,34084,716,39518,778,80302,277,376
20May 18, 2024 14:0521,347104,770,78918,785,78102,285,568
21May 18, 2024 14:0421,34866,892,94418,786,50302,285,568
22May 18, 2024 14:0521,35683,670,60118,793,13502,281,472
23May 18, 2024 14:0421,35880,213,49518,794,94702,285,568
24May 18, 2024 14:0421,35993,747,61418,795,56102,285,568