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 15:21Ivan BessonovIvan BessonovScore: 20,061Success
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 15:2119,22242,624,70314,925,0001,990,0002,301,952
2May 18, 2024 15:2119,23234,698,59214,933,0001,991,0002,289,664
3May 18, 2024 15:2119,29240,999,11614,980,0001,997,0002,289,664
4May 18, 2024 15:2119,40144,704,70516,006,0001,067,0002,301,952
5May 18, 2024 15:2120,01935,518,12116,581,0001,036,0002,314,240
6May 18, 2024 15:2120,02646,621,55116,587,0001,036,0002,408,448
7May 18, 2024 15:2120,06139,361,57717,654,00002,404,352
8May 18, 2024 15:2120,07441,564,48216,626,0001,039,0002,310,144
9May 18, 2024 15:2120,14344,635,33716,684,0001,042,0002,301,952
10May 18, 2024 15:2120,28088,132,13417,846,23002,297,856
11May 18, 2024 15:2121,02196,312,11018,498,60602,285,568
12May 18, 2024 15:2121,11887,172,24818,583,76202,293,760