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 7, 2026 01:04Victor MerckléVictor MerckléScore: 7,661Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 01:077,52013,910,5876,618,00002,113,536
2Jun 7, 2026 01:077,62114,031,6226,707,00002,113,536
3Jun 7, 2026 01:077,65314,042,0246,735,00002,113,536
4Jun 7, 2026 01:077,65413,994,5266,736,00002,113,536
5Jun 7, 2026 01:077,66114,150,8386,742,00002,113,536
6Jun 7, 2026 01:077,66914,129,8736,749,00002,113,536
7Jun 7, 2026 01:077,67714,777,9906,756,00002,113,536
8Jun 7, 2026 01:077,67716,628,3586,756,00002,113,536
9Jun 7, 2026 01:077,71814,273,3166,792,00002,113,536