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:33Robert BurkeRobert BurkeScore: 36,849Success
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:3335,37787,218,58531,132,19502,256,896
2Jul 31, 2022 15:3335,38688,818,61331,140,11002,281,472
3Jul 31, 2022 15:3335,49992,624,01831,239,48802,297,856
4Jul 31, 2022 15:3336,65657,414,69330,241,0002,016,0002,445,312
5Jul 31, 2022 15:3336,74255,826,41432,333,00002,273,280
6Jul 31, 2022 15:3336,83453,172,70231,402,0001,012,0002,449,408
7Jul 31, 2022 15:3336,84957,825,30132,427,00002,535,424
8Jul 31, 2022 15:3336,92754,562,70631,481,0001,015,0002,273,280
9Jul 31, 2022 15:3336,93556,000,65730,472,0002,031,0002,441,216
10Jul 31, 2022 15:3337,15557,300,60432,696,00002,535,424
11Jul 31, 2022 15:3337,17661,359,67732,715,00002,363,392
12Jul 31, 2022 15:3337,24861,938,62432,778,00002,433,024