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 listJul 13, 2023 18:45gchebanovgchebanovScore: 59,606Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 18:4554,600115,230,32648,048,05802,293,760
2Jul 13, 2023 18:4554,691113,317,23148,127,97502,301,952
3Jul 13, 2023 18:4554,818108,264,64348,239,62602,297,856
4Jul 13, 2023 18:4559,43172,745,16150,288,0002,011,0002,293,760
5Jul 13, 2023 18:4559,46186,439,18051,320,0001,006,0002,293,760
6Jul 13, 2023 18:4559,53977,500,86451,387,0001,007,0002,293,760
7Jul 13, 2023 18:4559,60676,903,19851,445,0001,008,0002,293,760
8Jul 13, 2023 18:4559,69579,322,06252,532,00002,293,760
9Jul 13, 2023 18:4559,69976,147,24751,525,0001,010,0002,293,760
10Jul 13, 2023 18:4559,73974,451,59951,560,0001,010,0002,301,952
11Jul 13, 2023 18:4559,83279,365,53151,640,0001,012,0002,293,760
12Jul 13, 2023 18:4560,71782,779,07553,431,00002,293,760