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:14Sergey StreminSergey StreminScore: 72,201Success
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:1471,965123,507,31163,329,31502,228,224
2Nov 10, 2021 13:1472,066128,626,47263,417,90802,224,128
3Nov 10, 2021 13:1472,174117,348,49163,513,26402,224,128
4Nov 10, 2021 13:1472,201132,884,78563,536,60002,236,416
5Nov 10, 2021 13:1472,217125,881,90663,550,62502,232,320
6Nov 10, 2021 13:1472,396136,332,22263,708,35802,232,320