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 8, 2023 23:09Andrew EpsteinAndrew EpsteinScore: 7,371,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2023 23:097,324,4547,078,923,6206,445,519,87302,256,896
2Jul 8, 2023 23:097,371,0286,560,326,1836,486,504,91102,252,800
3Jul 8, 2023 23:097,382,7286,584,048,5516,496,800,57502,252,800