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 27, 2026 19:34Victor MerckléVictor MerckléScore: 5,167Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 19:375,04312,123,6324,438,00002,113,536
2Jun 27, 2026 19:375,09412,187,9774,483,00002,113,536
3Jun 27, 2026 19:375,15912,210,8814,540,00002,113,536
4Jun 27, 2026 19:375,16412,205,8014,545,00002,113,536
5Jun 27, 2026 19:375,16712,207,1574,547,00002,113,536
6Jun 27, 2026 19:375,17812,553,2004,557,00002,113,536
7Jun 27, 2026 19:375,18212,565,9404,561,00002,113,536
8Jun 27, 2026 19:375,40512,423,0024,757,00002,113,536
9Jun 27, 2026 19:375,48612,511,0464,828,00002,113,536