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:34Robert BurkeRobert BurkeScore: 36,656Success
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:3436,36091,942,71531,996,69102,293,760
2Jul 31, 2022 15:3436,40753,728,86531,037,0001,001,0002,453,504
3Jul 31, 2022 15:3436,51964,030,54931,133,0001,004,0002,301,952
4Jul 31, 2022 15:3436,53454,015,60431,146,0001,004,0002,449,408
5Jul 31, 2022 15:3436,62257,480,39831,220,0001,007,0002,273,280
6Jul 31, 2022 15:3436,65399,126,28932,254,93302,293,760
7Jul 31, 2022 15:3436,65657,423,70631,249,0001,008,0002,535,424
8Jul 31, 2022 15:3436,70763,127,94530,284,0002,018,0002,535,424
9Jul 31, 2022 15:3436,78897,578,30532,373,59802,285,568
10Jul 31, 2022 15:3436,80055,196,40431,372,0001,012,0002,453,504
11Jul 31, 2022 15:3437,10953,397,82932,656,00002,449,408
12Jul 31, 2022 15:3437,13856,906,08931,660,0001,021,0002,273,280