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 19, 2024 06:14Ivan BessonovIvan BessonovScore: 17,901Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 06:1417,01730,908,70212,979,0001,996,0002,289,664
2May 19, 2024 06:1417,03031,693,54012,988,0001,998,0002,289,664
3May 19, 2024 06:1417,07238,067,19914,022,0001,001,0002,289,664
4May 19, 2024 06:1417,07531,291,49114,025,0001,001,0002,326,528
5May 19, 2024 06:1417,08241,721,15913,028,0002,004,0002,289,664
6May 19, 2024 06:1417,08549,940,91214,033,0001,002,0002,330,624
7May 19, 2024 06:1417,90142,437,00414,703,0001,050,0002,334,720
8May 19, 2024 06:1417,94144,343,00114,736,0001,052,0002,289,664
9May 19, 2024 06:1418,04987,348,73115,883,45802,330,624
10May 19, 2024 06:1418,07531,898,54115,906,00002,285,568
11May 19, 2024 06:1418,14467,578,94815,966,30302,306,048
12May 19, 2024 06:1418,188107,353,79716,005,14102,252,800