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 listNov 10, 2021 13:11Sergey StreminSergey StreminScore: 72,614Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2021 13:1172,206122,973,51863,541,46302,236,416
2Nov 10, 2021 13:1172,369129,525,53263,685,11202,240,512
3Nov 10, 2021 13:1172,506124,405,45063,804,87902,228,224
4Nov 10, 2021 13:1172,614127,677,74163,900,13502,232,320
5Nov 10, 2021 13:1172,757140,606,19764,026,22202,240,512
6Nov 10, 2021 13:1172,993128,059,92864,233,59702,244,608