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 5, 2024 08:07Ivan BessonovIvan BessonovScore: 52,557Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:0752,42667,592,26844,130,0002,005,0002,269,184
2May 5, 2024 08:0752,44968,849,92944,149,0002,006,0002,527,232
3May 5, 2024 08:0752,47269,764,84744,168,0002,007,0002,269,184
4May 5, 2024 08:0752,50271,520,42844,194,0002,008,0002,289,664
5May 5, 2024 08:0752,52067,302,36344,209,0002,009,0002,269,184
6May 5, 2024 08:0752,53073,138,46845,222,0001,004,0002,289,664
7May 5, 2024 08:0752,55774,947,21544,240,0002,010,0002,289,664
8May 5, 2024 08:0752,59575,595,92244,272,0002,012,0002,523,136
9May 5, 2024 08:0752,74970,964,87445,410,0001,009,0002,289,664
10May 5, 2024 08:0752,785108,042,13746,451,02502,256,896
11May 5, 2024 08:0752,821108,250,17846,482,85402,256,896
12May 5, 2024 08:0752,933103,933,42746,581,03302,269,184