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 26, 2023 16:53Kenneth MaplesKenneth MaplesScore: 15,349Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2023 17:0615,30070,740,70513,463,64402,232,320
2Dec 26, 2023 16:5315,30583,055,45013,467,96102,240,512
3Dec 26, 2023 17:0615,31384,361,96513,475,65402,232,320
4Dec 26, 2023 17:0115,32874,058,07613,488,50802,232,320
5Dec 26, 2023 17:0115,34970,435,91013,507,28602,232,320
6Dec 26, 2023 17:0115,35078,269,72113,508,32302,236,416
7Dec 26, 2023 16:5315,36361,012,33313,519,35802,224,128
8Dec 26, 2023 16:5315,38660,273,24713,540,09702,244,608
9Dec 26, 2023 17:0615,55286,799,08913,685,95402,228,224