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 7, 2023 18:55Pavel ZagrebinPavel ZagrebinScore: 287,813Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2023 18:55287,789308,616,581253,254,49902,232,320
2Oct 7, 2023 18:55287,813316,321,492253,275,69002,244,608
3Oct 7, 2023 18:55287,852322,263,657253,309,61902,232,320