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 listMay 12, 2024 17:54Ivan BessonovIvan BessonovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2024 17:5700000Error: expected "51006181714439 ", got "51008163835638 "
2May 12, 2024 19:3900000Error: expected "51094765375702 ", got "51096671094761 "
3May 12, 2024 17:5432,057109,557,82428,210,42502,260,992
4May 12, 2024 17:5432,08696,454,25628,235,27702,256,896
5May 12, 2024 17:5432,21484,797,87728,347,91902,256,896