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 17, 2024 07:55Ivan BessonovIvan BessonovScore: 24,049Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 07:5523,93140,475,28919,054,0002,005,0002,289,664
2May 17, 2024 07:5523,94244,044,43219,063,0002,006,0002,277,376
3May 17, 2024 07:5523,95240,622,51219,071,0002,007,0002,281,472
4May 17, 2024 07:5523,97742,883,06720,096,0001,004,0002,289,664
5May 17, 2024 07:5523,98943,497,47220,105,0001,005,0002,289,664
6May 17, 2024 07:5524,01046,111,84920,123,0001,006,0002,289,664
7May 17, 2024 07:5524,04944,015,16819,148,0002,015,0002,367,488
8May 17, 2024 07:5524,23547,772,13919,296,0002,031,0002,289,664
9May 17, 2024 07:5524,24142,755,11419,301,0002,031,0002,289,664
10May 17, 2024 07:5525,51287,879,11222,450,60902,260,992
11May 17, 2024 07:5525,54484,808,89522,478,28002,252,800
12May 17, 2024 07:5525,54683,419,57622,480,27002,248,704