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 24, 2023 02:00Kenneth MaplesKenneth MaplesScore: 19,662Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 02:1419,56486,952,26517,216,06802,240,512
2Dec 24, 2023 02:1419,56481,548,54717,216,10402,236,416
3Dec 24, 2023 02:0019,59967,750,51817,247,32502,236,416
4Dec 24, 2023 02:0019,66281,487,97917,302,21102,240,512
5Dec 24, 2023 02:1419,66384,119,06617,303,83802,228,224
6Dec 24, 2023 02:0019,68861,906,64717,325,74202,236,416