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 7, 2024 12:26Ivan BessonovIvan BessonovScore: 48,382Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 12:2645,205102,153,82439,780,18002,260,992
2May 7, 2024 12:2645,259103,023,09239,827,85502,256,896
3May 7, 2024 12:2645,299105,223,90039,862,75302,252,800
4May 7, 2024 12:2648,27470,717,20041,470,0001,011,0002,289,664
5May 7, 2024 12:2648,36963,879,73241,552,0001,013,0002,363,392
6May 7, 2024 12:2648,37268,140,14941,554,0001,013,0002,519,040
7May 7, 2024 12:2648,38264,734,79242,576,00002,289,664
8May 7, 2024 12:2648,46971,153,73741,638,0001,015,0002,273,280
9May 7, 2024 12:2648,49170,768,35541,656,0001,016,0002,289,664
10May 7, 2024 12:2648,56471,409,27841,719,0001,017,0002,367,488
11May 7, 2024 12:2648,72573,548,48940,884,0001,994,0002,289,664
12May 7, 2024 12:2648,72773,165,07840,886,0001,994,0002,289,664