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:38Robert BurkeRobert BurkeScore: 36,518Success
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:3836,25155,404,15929,908,0001,993,0002,293,760
2Jul 31, 2022 15:3836,32759,186,85730,969,000999,0002,535,424
3Jul 31, 2022 15:3836,372105,807,62332,007,12502,281,472
4Jul 31, 2022 15:3836,42285,401,03532,051,32002,289,664
5Jul 31, 2022 15:3836,42652,596,53030,052,0002,003,0002,273,280
6Jul 31, 2022 15:3836,44555,979,08431,070,0001,002,0002,273,280
7Jul 31, 2022 15:3836,51860,638,56029,124,0003,012,0002,445,312
8Jul 31, 2022 15:3836,52454,729,60930,133,0002,008,0002,445,312
9Jul 31, 2022 15:3836,52455,918,90331,137,0001,004,0002,441,216
10Jul 31, 2022 15:3836,55686,951,14332,168,88002,293,760
11Jul 31, 2022 15:3836,59455,012,41131,197,0001,006,0002,273,280
12Jul 31, 2022 15:3836,71359,397,19830,288,0002,019,0002,535,424