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 listOct 12, 2022 15:45Kenneth MaplesKenneth MaplesScore: 3,665,268Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2022 15:453,658,2173,282,078,4293,219,231,23602,256,896
2Oct 12, 2022 15:453,665,2683,290,818,2383,225,435,78802,260,992
3Oct 12, 2022 15:453,673,4033,288,111,4253,232,594,80402,260,992