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 16, 2024 17:42Ivan BessonovIvan BessonovScore: 34,256Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 17:4234,16196,755,99630,061,71402,260,992
2May 16, 2024 17:4234,16454,848,44228,060,0002,004,0002,281,472
3May 16, 2024 17:4234,18553,285,06828,078,0002,005,0002,289,664
4May 16, 2024 17:4234,21695,404,19930,110,19102,265,088
5May 16, 2024 17:4234,25252,490,68428,133,0002,009,0002,289,664
6May 16, 2024 17:4234,25389,026,57330,143,01002,260,992
7May 16, 2024 17:4234,25656,951,82028,136,0002,009,0002,289,664
8May 16, 2024 17:4234,26357,679,20928,141,0002,010,0002,289,664
9May 16, 2024 17:4234,28550,637,39328,160,0002,011,0002,273,280
10May 16, 2024 17:4234,35557,772,03228,217,0002,015,0002,289,664
11May 16, 2024 17:4234,36051,968,26328,222,0002,015,0002,383,872
12May 16, 2024 17:4234,48460,343,29228,323,0002,023,0002,289,664