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 18, 2024 10:23Ivan BessonovIvan BessonovScore: 21,497Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 10:2321,47848,604,29017,907,000994,0002,289,664
2May 18, 2024 10:2321,48347,433,25217,910,000995,0002,289,664
3May 18, 2024 10:2321,48644,771,56416,918,0001,990,0002,289,664
4May 18, 2024 10:2321,48843,377,06517,914,000995,0002,289,664
5May 18, 2024 10:2321,49044,078,27416,921,0001,990,0002,289,664
6May 18, 2024 10:2321,49146,471,60416,922,0001,990,0002,449,408
7May 18, 2024 10:2321,49744,819,42316,926,0001,991,0002,445,312
8May 18, 2024 10:2321,51843,357,28917,940,000996,0002,445,312
9May 18, 2024 10:2321,58053,253,27116,991,0001,999,0002,289,664
10May 18, 2024 10:2322,72893,849,55520,000,32202,293,760
11May 18, 2024 10:2322,80789,817,46620,070,05002,301,952
12May 18, 2024 10:2322,85195,083,59720,108,86002,289,664