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:57Victor MerckléVictor MerckléScore: 5,188Success
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 20:005,16511,986,8044,546,00002,113,536
2Jun 26, 2026 20:005,18112,195,5344,560,00002,113,536
3Jun 26, 2026 20:005,18612,358,0844,564,00002,113,536
4Jun 26, 2026 20:005,18712,058,2334,565,00002,113,536
5Jun 26, 2026 20:005,18812,344,4114,566,00002,113,536
6Jun 26, 2026 20:005,23112,369,3204,604,00002,113,536
7Jun 26, 2026 20:005,35212,328,1594,710,00002,113,536
8Jun 26, 2026 20:005,43812,268,6774,786,00002,113,536
9Jun 26, 2026 20:005,60312,458,6874,931,00002,113,536