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 listJun 5, 2026 12:24Victor MerckléVictor MerckléScore: 9,640Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2026 12:279,51915,874,6798,377,00002,113,536
2Jun 5, 2026 12:279,52015,704,7438,378,00002,113,536
3Jun 5, 2026 12:279,53215,682,8378,389,00002,113,536
4Jun 5, 2026 12:279,63815,773,1848,482,00002,113,536
5Jun 5, 2026 12:279,64015,884,2388,484,00002,113,536
6Jun 5, 2026 12:279,64215,943,8338,485,00002,113,536
7Jun 5, 2026 12:279,64515,754,6218,488,00002,113,536
8Jun 5, 2026 12:279,67016,101,1958,510,00002,113,536
9Jun 5, 2026 12:279,74715,949,9368,578,00002,113,536