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 19, 2026 22:15Victor MerckléVictor MerckléScore: 7,013Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 22:176,91813,595,8646,088,00002,113,536
2Jun 19, 2026 22:176,93513,560,3236,103,00002,113,536
3Jun 19, 2026 22:176,95513,591,4436,121,00002,113,536
4Jun 19, 2026 22:176,99613,769,0966,157,00002,113,536
5Jun 19, 2026 22:177,01313,623,9016,172,00002,113,536
6Jun 19, 2026 22:177,01413,624,0216,173,00002,113,536
7Jun 19, 2026 22:177,01713,685,0776,175,00002,113,536
8Jun 19, 2026 22:177,02213,647,4506,180,00002,113,536
9Jun 19, 2026 22:177,10113,688,3266,249,00002,113,536