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 09:12Ivan BessonovIvan BessonovScore: 16,655Success
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 09:1216,51734,446,17213,497,0001,038,0002,289,664
2May 19, 2024 09:1216,57432,960,19013,544,0001,041,0002,289,664
3May 19, 2024 09:1216,58134,325,47213,549,0001,042,0002,289,664
4May 19, 2024 09:1216,58930,670,44913,556,0001,042,0002,330,624
5May 19, 2024 09:1216,62630,511,10013,586,0001,045,0002,322,432
6May 19, 2024 09:1216,65035,925,49713,606,0001,046,0002,289,664
7May 19, 2024 09:1216,65534,418,41212,702,0001,954,0002,289,664
8May 19, 2024 09:1216,68244,982,56614,680,00002,334,720
9May 19, 2024 09:1216,73636,441,45413,747,000981,0002,285,568
10May 19, 2024 09:1217,22980,871,72415,161,09202,195,456
11May 19, 2024 09:1217,23382,975,83115,164,72802,187,264
12May 19, 2024 09:1217,23475,954,86215,165,94802,195,456