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 30, 2022 13:42Yuriy LyfenkoYuriy LyfenkoScore: 38,807Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 13:4230,44991,350,24126,795,55802,228,224
2Jul 30, 2022 13:4230,472101,725,66826,815,24402,224,128
3Jul 30, 2022 13:4230,609101,486,79926,936,26202,207,744
4Jul 30, 2022 13:4238,66363,080,25932,022,0002,001,0002,269,184
5Jul 30, 2022 13:4238,70663,882,41733,060,0001,001,0002,375,680
6Jul 30, 2022 13:4238,73466,525,85532,081,0002,005,0002,269,184
7Jul 30, 2022 13:4238,80762,052,38032,142,0002,008,0002,375,680
8Jul 30, 2022 13:4238,93860,187,38932,250,0002,015,0002,269,184
9Jul 30, 2022 13:4239,02557,323,40334,342,00002,269,184
10Jul 30, 2022 13:4239,06956,024,15033,370,0001,011,0002,269,184
11Jul 30, 2022 13:4239,08457,517,79233,383,0001,011,0002,269,184
12Jul 30, 2022 13:4239,24957,524,92633,524,0001,015,0002,269,184