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 listFeb 19, 2023 17:56Oleg TOleg TScore: 132,760Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2023 14:38132,501180,404,500116,600,82002,265,088
2Feb 19, 2023 17:56132,699182,354,768116,774,68102,260,992
3Feb 19, 2023 14:38132,724169,829,575116,797,53902,252,800
4Feb 19, 2023 17:56132,760180,273,118116,828,69002,256,896
5Feb 19, 2023 17:56132,774181,928,007116,841,33202,252,800
6Feb 19, 2023 14:38133,161180,241,096117,181,34302,260,992