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 listDec 28, 2022 04:50Robert BurkeRobert BurkeScore: 19,041Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 04:5018,58459,637,75916,354,05502,236,416
2Dec 28, 2022 04:5018,59661,815,38716,364,69202,236,416
3Dec 28, 2022 04:5018,60670,253,43916,373,22302,232,320
4Dec 28, 2022 04:5018,97731,556,47815,657,0001,043,0002,392,064
5Dec 28, 2022 04:5018,99232,377,81216,713,00002,273,280
6Dec 28, 2022 04:5019,03541,252,86816,751,00002,387,968
7Dec 28, 2022 04:5019,04137,784,85314,662,0002,094,0002,535,424
8Dec 28, 2022 04:5019,04344,405,75615,711,0001,047,0002,273,280
9Dec 28, 2022 04:5019,06732,620,51115,731,0001,048,0002,535,424
10Dec 28, 2022 04:5019,21143,236,02813,923,0002,983,0002,396,160
11Dec 28, 2022 04:5019,21445,005,06516,908,00002,535,424
12Dec 28, 2022 04:5019,22233,597,39014,925,0001,990,0002,490,368