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 17:05Kenneth MaplesKenneth MaplesScore: 118,768Success
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 17:05118,768180,345,505104,515,93602,256,896
2Oct 12, 2022 17:05118,768166,969,842104,515,50502,265,088
3Oct 12, 2022 17:05119,145165,223,101104,847,17302,260,992