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 18, 2024 04:51Huy Duc LeHuy Duc LeScore: 110,118Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 04:51110,097162,935,66196,884,98902,248,704
2Feb 18, 2024 04:51110,118160,357,02396,903,62702,256,896
3Feb 18, 2024 04:51110,395154,701,53797,147,62402,260,992