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 listJul 31, 2022 15:10Robert BurkeRobert BurkeScore: 35,814Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:1035,04582,582,93130,839,41802,281,472
2Jul 31, 2022 15:1035,100103,068,81330,888,07702,256,896
3Jul 31, 2022 15:1035,450109,905,01531,195,62302,265,088
4Jul 31, 2022 15:1035,55057,841,35829,266,0002,018,0002,293,760
5Jul 31, 2022 15:1035,68652,238,83431,404,00002,301,952
6Jul 31, 2022 15:1035,75252,113,59330,448,0001,014,0002,387,968
7Jul 31, 2022 15:1035,81451,878,86130,500,0001,016,0002,301,952
8Jul 31, 2022 15:1035,81755,547,24831,519,00002,306,048
9Jul 31, 2022 15:1035,84152,554,98930,523,0001,017,0002,285,568
10Jul 31, 2022 15:1035,88353,674,16531,577,00002,293,760
11Jul 31, 2022 15:1035,98254,026,99931,664,00002,535,424
12Jul 31, 2022 15:1036,00957,131,89629,644,0002,044,0002,293,760