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 19:01gchebanovgchebanovScore: 55,897Success
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 19:0152,408105,490,81346,118,60102,293,760
2Jul 13, 2023 19:0152,784109,319,04546,450,29902,293,760
3Jul 13, 2023 19:0154,839119,765,19748,258,20102,297,856
4Jul 13, 2023 19:0155,73473,446,01248,046,0001,000,0002,289,664
5Jul 13, 2023 19:0155,77672,483,57547,080,0002,003,0002,428,928
6Jul 13, 2023 19:0155,82874,571,93247,124,0002,005,0002,445,312
7Jul 13, 2023 19:0155,89771,412,65847,182,0002,007,0002,289,664
8Jul 13, 2023 19:0155,98471,275,39048,261,0001,005,0002,449,408
9Jul 13, 2023 19:0156,01972,162,36248,291,0001,006,0002,453,504
10Jul 13, 2023 19:0157,83282,092,35249,895,000997,0002,289,664
11Jul 13, 2023 19:0157,91078,211,46649,962,000999,0002,289,664
12Jul 13, 2023 19:0157,99776,197,57049,036,0002,001,0002,289,664