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:31Ivan BessonovIvan BessonovScore: 19,310Success
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:3119,19034,079,60714,901,0001,986,0002,310,144
2May 18, 2024 15:3119,20233,820,79414,910,0001,988,0002,306,048
3May 18, 2024 15:3119,21544,068,93715,915,000994,0002,306,048
4May 18, 2024 15:3119,26433,998,21815,955,000997,0002,306,048
5May 18, 2024 15:3119,30241,521,58414,988,0001,998,0002,289,664
6May 18, 2024 15:3119,30743,368,78916,990,00002,310,144
7May 18, 2024 15:3119,31039,977,38615,994,000999,0002,289,664
8May 18, 2024 15:3119,33337,453,78015,012,0002,001,0002,310,144
9May 18, 2024 15:3120,05291,628,12717,646,14802,293,760
10May 18, 2024 15:3120,08585,861,65617,674,87802,289,664
11May 18, 2024 15:3120,08666,335,36917,675,45102,289,664
12May 18, 2024 15:3120,11733,872,94716,662,0001,041,0002,289,664