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 5, 2026 11:33Victor MerckléVictor MerckléScore: 10,630Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2026 11:3610,53216,768,7229,269,00002,113,536
2Jun 5, 2026 11:3610,55316,799,2409,287,00002,113,536
3Jun 5, 2026 11:3610,55616,834,5289,290,00002,113,536
4Jun 5, 2026 11:3610,61916,838,8019,345,00002,113,536
5Jun 5, 2026 11:3610,63016,843,4109,355,00002,113,536
6Jun 5, 2026 11:3610,63416,797,9009,358,00002,113,536
7Jun 5, 2026 11:3610,63916,825,1839,363,00002,113,536
8Jun 5, 2026 11:3610,67616,881,0029,395,00002,113,536
9Jun 5, 2026 11:3610,70616,884,6769,422,00002,113,536