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 08:48Ivan BessonovIvan BessonovScore: 17,159Success
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 08:4816,67533,035,13213,626,0001,048,0002,289,664
2May 19, 2024 08:4816,72744,671,05913,669,0001,051,0002,289,664
3May 19, 2024 08:4816,73831,794,95413,677,0001,052,0002,289,664
4May 19, 2024 08:4816,74335,364,92214,734,00002,285,568
5May 19, 2024 08:4816,76036,228,29213,696,0001,053,0002,285,568
6May 19, 2024 08:4817,02233,848,55612,982,0001,997,0002,289,664
7May 19, 2024 08:4817,15930,378,58314,094,0001,006,0002,330,624
8May 19, 2024 08:4817,17638,450,06813,100,0002,015,0002,330,624
9May 19, 2024 08:4817,26433,090,31913,167,0002,025,0002,330,624
10May 19, 2024 08:4817,82582,459,34315,685,60002,187,264
11May 19, 2024 08:4817,99584,951,04115,835,39502,183,168
12May 19, 2024 08:4818,02992,895,81215,865,85802,195,456