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 18:51Ivan BessonovIvan BessonovScore: 17,317Success
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 18:5117,01731,745,01312,979,0001,996,0002,306,048
2May 18, 2024 18:5117,04335,156,88312,999,0001,999,0002,310,144
3May 18, 2024 18:5117,06831,052,84513,018,0002,002,0002,289,664
4May 18, 2024 18:5117,13142,187,72213,065,0002,010,0002,289,664
5May 18, 2024 18:5117,20740,106,74314,133,0001,009,0002,289,664
6May 18, 2024 18:5117,23287,476,20215,163,89802,285,568
7May 18, 2024 18:5117,31781,191,22915,239,09102,285,568
8May 18, 2024 18:5117,76883,343,07315,635,80402,293,760
9May 18, 2024 18:5118,08042,940,61214,916,000994,0002,306,048
10May 18, 2024 18:5118,08841,641,07113,928,0001,989,0002,301,952
11May 18, 2024 18:5118,09440,594,39515,923,00002,289,664
12May 18, 2024 18:5118,12434,743,81613,956,0001,993,0002,301,952