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 25, 2023 20:23gchebanovgchebanovScore: 32,492Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:2332,28455,216,84027,396,0001,014,0002,289,664
2Jul 25, 2023 20:2332,424106,697,44028,533,15402,224,128
3Jul 25, 2023 20:2332,42650,644,91826,497,0002,038,0002,289,664
4Jul 25, 2023 20:2332,45251,938,61627,539,0001,019,0002,289,664
5Jul 25, 2023 20:2332,46091,409,10828,564,50102,220,032
6Jul 25, 2023 20:2332,46149,572,81726,526,0002,040,0002,289,664
7Jul 25, 2023 20:2332,49254,731,00226,551,0002,042,0002,371,584
8Jul 25, 2023 20:2332,50951,849,10027,587,0001,021,0002,445,312
9Jul 25, 2023 20:2332,51456,674,45827,591,0001,021,0002,359,296
10Jul 25, 2023 20:2332,56463,097,26928,656,00002,289,664
11Jul 25, 2023 20:2332,565102,234,43628,657,24202,211,840
12Jul 25, 2023 20:2332,66658,108,68527,720,0001,026,0002,289,664