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 26, 2026 19:03Victor MerckléVictor MerckléScore: 5,164Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 19:065,11012,003,5034,497,00002,113,536
2Jun 26, 2026 19:065,13611,973,3284,520,00002,113,536
3Jun 26, 2026 19:065,15011,947,8554,532,00002,113,536
4Jun 26, 2026 19:065,16112,101,1594,542,00002,113,536
5Jun 26, 2026 19:065,16412,006,3394,545,00002,113,536
6Jun 26, 2026 19:065,16512,053,1984,546,00002,113,536
7Jun 26, 2026 19:065,19211,987,6994,569,00002,113,536
8Jun 26, 2026 19:065,22612,424,8944,599,00002,113,536
9Jun 26, 2026 19:065,33812,510,6344,698,00002,113,536