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 20:19Ivan BessonovIvan BessonovScore: 17,390Success
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 20:1916,93640,570,46912,917,0001,987,0002,322,432
2May 18, 2024 20:1816,96741,689,69713,865,0001,066,0002,326,528
3May 18, 2024 20:1816,96845,536,56513,937,000995,0002,289,664
4May 18, 2024 20:1816,97731,746,23414,940,00002,289,664
5May 18, 2024 20:1916,97737,631,21912,948,0001,992,0002,322,432
6May 18, 2024 20:1817,00140,576,10613,964,000997,0002,289,664
7May 18, 2024 20:1917,00947,608,86412,973,0001,995,0002,289,664
8May 18, 2024 20:1917,05642,956,49313,008,0002,001,0002,289,664
9May 18, 2024 20:1817,06736,568,55913,017,0002,002,0002,289,664
10May 18, 2024 20:1917,07430,879,62014,024,0001,001,0002,289,664
11May 18, 2024 20:1917,09236,790,23614,039,0001,002,0002,289,664
12May 18, 2024 20:1817,36958,884,15715,284,97602,293,760
13May 18, 2024 20:1917,39081,460,27015,302,84902,179,072
14May 18, 2024 20:1817,39254,193,03115,305,39302,179,072
15May 18, 2024 20:1817,39587,128,50815,308,02002,183,168
16May 18, 2024 20:1917,41569,586,86115,325,03902,306,048
17May 18, 2024 20:1917,42477,679,95715,333,10802,179,072
18May 18, 2024 20:1917,82431,290,90514,640,0001,045,0002,289,664
19May 18, 2024 20:1817,83543,358,86014,649,0001,046,0002,404,352
20May 18, 2024 20:1817,89242,125,07414,696,0001,049,0002,289,664
21May 18, 2024 20:1917,91830,882,16914,717,0001,051,0002,314,240
22May 18, 2024 20:1817,91931,726,95814,718,0001,051,0002,289,664
23May 18, 2024 20:1918,06534,863,53914,904,000993,0002,289,664
24May 18, 2024 20:1818,07532,534,35213,918,0001,988,0002,318,336