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:52Robert BurkeRobert BurkeScore: 35,752Success
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:5235,49851,150,54229,223,0002,015,0002,375,680
2Jul 31, 2022 15:5235,507107,979,86331,246,26402,248,704
3Jul 31, 2022 15:5235,54959,161,29230,274,0001,009,0002,269,184
4Jul 31, 2022 15:5235,64497,709,83631,366,77402,240,512
5Jul 31, 2022 15:5235,69356,033,81330,397,0001,013,0002,281,472
6Jul 31, 2022 15:5235,70050,213,76930,403,0001,013,0002,531,328
7Jul 31, 2022 15:5235,75250,150,10830,448,0001,014,0002,273,280
8Jul 31, 2022 15:5235,75760,475,72730,451,0001,015,0002,531,328
9Jul 31, 2022 15:5235,78196,878,21331,487,42102,240,512
10Jul 31, 2022 15:5235,91153,471,40830,583,0001,019,0002,260,992
11Jul 31, 2022 15:5235,94354,955,73230,610,0001,020,0002,527,232
12Jul 31, 2022 15:5236,26155,720,52930,913,000997,0002,265,088