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 21, 2026 12:49Victor MerckléVictor MerckléScore: 6,914Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 12:516,71513,435,8705,910,00002,113,536
2Jun 21, 2026 12:516,81413,441,9105,997,00002,113,536
3Jun 21, 2026 12:516,85013,457,4236,028,00002,113,536
4Jun 21, 2026 12:516,85913,816,1496,036,00002,113,536
5Jun 21, 2026 12:516,91413,505,2016,085,00002,113,536
6Jun 21, 2026 12:516,92813,511,8256,097,00002,113,536
7Jun 21, 2026 12:516,95913,549,6506,124,00002,113,536
8Jun 21, 2026 12:516,99313,603,6656,154,00002,113,536
9Jun 21, 2026 12:517,16113,735,2256,302,00002,113,536