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:57Pavel ZagrebinPavel ZagrebinScore: 156,965Success
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 19:15156,437175,429,996137,664,85202,240,512
2Oct 7, 2023 19:15156,721198,864,521137,914,91902,244,608
3Oct 7, 2023 19:15156,745207,411,127137,935,24902,236,416
4Oct 7, 2023 18:57156,965201,375,261138,129,47102,232,320
5Oct 7, 2023 18:57157,084218,951,358138,234,22402,244,608
6Oct 7, 2023 18:57157,318196,707,523138,439,99502,240,512