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 16, 2023 14:54Bernard TeoBernard TeoScore: 301,259Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2023 15:23300,951343,585,960264,836,55702,256,896
2Jul 16, 2023 15:23301,184326,419,534265,041,64402,260,992
3Jul 16, 2023 15:23301,252330,253,501265,101,97702,256,896
4Jul 16, 2023 14:54301,259335,205,397265,107,50402,256,896
5Jul 16, 2023 14:54301,473324,730,784265,296,36002,252,800
6Jul 16, 2023 14:54301,849325,099,250265,627,46202,256,896