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 9, 2026 19:13Victor MerckléVictor MerckléScore: 7,462Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2026 19:157,36413,739,1296,481,00002,113,536
2Jun 9, 2026 19:157,37113,706,9586,487,00002,113,536
3Jun 9, 2026 19:157,37513,686,8386,490,00002,113,536
4Jun 9, 2026 19:157,43413,935,9366,542,00002,113,536
5Jun 9, 2026 19:157,46213,750,8586,567,00002,113,536
6Jun 9, 2026 19:157,47014,010,3426,574,00002,113,536
7Jun 9, 2026 19:157,47813,789,4896,581,00002,113,536
8Jun 9, 2026 19:157,57013,826,8406,662,00002,113,536
9Jun 9, 2026 19:157,59413,856,6276,683,00002,113,536