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 listJul 18, 2023 17:33Bernard TeoBernard TeoScore: 71,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 17:3271,604118,406,84063,011,59002,256,896
2Jul 18, 2023 17:3371,736136,729,51763,127,51502,252,800
3Jul 18, 2023 17:3271,761133,174,08463,149,58602,256,896
4Jul 18, 2023 17:3371,795138,629,26063,179,39902,244,608
5Jul 18, 2023 17:3371,833122,463,45563,212,62902,248,704
6Jul 18, 2023 17:3271,838129,497,96663,217,67002,252,800