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 17, 2024 06:00Ivan BessonovIvan BessonovScore: 30,820Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 06:0027,16984,784,10623,908,42202,256,896
2May 17, 2024 06:0027,21996,378,68723,952,73902,256,896
3May 17, 2024 06:0027,23294,654,72123,964,54902,260,992
4May 17, 2024 06:0030,79949,547,43726,100,0001,003,0002,273,280
5May 17, 2024 06:0030,80851,103,40825,103,0002,008,0002,289,664
6May 17, 2024 06:0030,81150,760,04425,106,0002,008,0002,289,664
7May 17, 2024 06:0030,82050,556,74125,113,0002,009,0002,289,664
8May 17, 2024 06:0030,83257,280,54625,123,0002,009,0002,289,664
9May 17, 2024 06:0030,85254,163,90225,139,0002,011,0002,289,664
10May 17, 2024 06:0030,86946,046,91626,159,0001,006,0002,273,280
11May 17, 2024 06:0031,03347,841,13126,298,0001,011,0002,289,664
12May 17, 2024 06:0031,06147,485,22625,310,0002,024,0002,265,088