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:29Robert BurkeRobert BurkeScore: 36,301Success
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:2935,10186,633,24430,889,11502,293,760
2Jul 31, 2022 15:2935,28694,646,51631,052,01902,289,664
3Jul 31, 2022 15:2935,34694,355,94231,104,76602,285,568
4Jul 31, 2022 15:2935,84858,999,32629,511,0002,035,0002,535,424
5Jul 31, 2022 15:2936,28157,299,05029,932,0001,995,0002,453,504
6Jul 31, 2022 15:2936,28258,781,99430,931,000997,0002,441,216
7Jul 31, 2022 15:2936,30154,912,12029,949,0001,996,0002,535,424
8Jul 31, 2022 15:2936,33460,562,79730,975,000999,0002,326,528
9Jul 31, 2022 15:2936,33656,832,18628,979,0002,997,0002,449,408
10Jul 31, 2022 15:2936,38959,430,71931,022,0001,000,0002,445,312
11Jul 31, 2022 15:2936,44164,235,72030,064,0002,004,0002,449,408
12Jul 31, 2022 15:2936,58455,846,88830,182,0002,012,0002,445,312