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 20, 2024 20:56Ivan BessonovIvan BessonovScore: 15,853Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:5615,38662,876,90313,539,45702,203,648
2May 20, 2024 20:5615,40468,464,91113,555,28602,191,360
3May 20, 2024 20:5615,43055,405,06613,578,29602,199,552
4May 20, 2024 20:5615,80641,715,84611,922,0001,987,0002,338,816
5May 20, 2024 20:5615,80742,281,26711,923,0001,987,0002,351,104
6May 20, 2024 20:5615,82436,099,43111,936,0001,989,0002,342,912
7May 20, 2024 20:5615,85335,677,35111,958,0001,993,0002,289,664
8May 20, 2024 20:5615,93632,169,92712,021,0002,003,0002,289,664
9May 20, 2024 20:5615,95735,970,36312,036,0002,006,0002,289,664
10May 20, 2024 20:5616,29737,111,79712,293,0002,048,0002,289,664
11May 20, 2024 20:5616,51641,306,35713,496,0001,038,0002,289,664
12May 20, 2024 20:5616,53234,443,96313,509,0001,039,0002,289,664