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 5, 2024 16:17Ivan BessonovIvan BessonovScore: 48,574Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 16:1744,853104,376,36539,470,29602,269,184
2May 5, 2024 16:1744,932103,514,23239,540,48602,269,184
3May 5, 2024 16:1745,20499,451,06239,779,31202,260,992
4May 5, 2024 16:1748,45665,635,70842,641,00002,269,184
5May 5, 2024 16:1748,49166,666,93541,656,0001,016,0002,383,872
6May 5, 2024 16:1748,54567,068,99841,703,0001,017,0002,289,664
7May 5, 2024 16:1748,57473,506,16341,728,0001,017,0002,289,664
8May 5, 2024 16:1748,57872,440,46341,732,0001,017,0002,289,664
9May 5, 2024 16:1748,69969,257,04240,862,0001,993,0002,289,664
10May 5, 2024 16:1748,72572,984,41441,881,000997,0002,289,664
11May 5, 2024 16:1748,73168,728,09841,886,000997,0002,289,664
12May 5, 2024 16:1748,86167,196,30240,999,0001,999,0002,269,184