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 23, 2026 05:58Victor MerckléVictor MerckléScore: 5,894Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 06:015,79712,567,8735,102,00002,113,536
2Jun 23, 2026 06:015,82612,669,6615,127,00002,113,536
3Jun 23, 2026 06:015,87713,123,2525,172,00002,113,536
4Jun 23, 2026 06:015,89012,621,1405,184,00002,113,536
5Jun 23, 2026 06:015,89412,666,7305,187,00002,113,536
6Jun 23, 2026 06:015,89812,731,4995,191,00002,113,536
7Jun 23, 2026 06:015,90213,060,8915,194,00002,113,536
8Jun 23, 2026 06:015,92513,003,9235,214,00002,113,536
9Jun 23, 2026 06:016,03213,111,8575,309,00002,113,536