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 23, 2023 20:33Kenneth MaplesKenneth MaplesScore: 36,656Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 20:3336,51759,373,96631,131,0001,004,0002,527,232
2Dec 23, 2023 20:3336,52355,407,34531,136,0001,004,0002,265,088
3Dec 23, 2023 20:3336,52555,210,05330,134,0002,008,0002,387,968
4Dec 23, 2023 20:3336,53157,714,96430,138,0002,009,0002,265,088
5Dec 23, 2023 20:3336,54259,534,20831,153,0001,004,0002,383,872
6Dec 23, 2023 20:3336,55758,565,26830,160,0002,010,0002,527,232
7Dec 23, 2023 20:3336,65657,036,73031,249,0001,008,0002,527,232
8Dec 23, 2023 20:3336,72255,829,75130,296,0002,019,0002,527,232
9Dec 23, 2023 20:3336,72354,570,14132,316,00002,392,064
10Dec 23, 2023 20:3337,06592,330,52032,617,02702,232,320
11Dec 23, 2023 20:3337,067106,904,14732,619,22302,232,320
12Dec 23, 2023 20:3337,098102,658,20632,646,39702,240,512