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 listAug 11, 2023 10:39parsersmailparsersmailScore: 13,120,371Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 11, 2023 10:3913,060,72211,552,581,05311,493,435,38402,285,568
2Aug 11, 2023 10:3913,120,37111,609,311,58011,545,926,32702,293,760
3Aug 11, 2023 10:3913,129,09611,625,594,66711,553,604,39802,285,568