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 27, 2026 20:06Victor MerckléVictor MerckléScore: 5,113Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 20:095,00312,119,8704,403,00002,113,536
2Jun 27, 2026 20:095,10012,309,5774,488,00002,113,536
3Jun 27, 2026 20:095,10412,225,2914,492,00002,113,536
4Jun 27, 2026 20:095,10712,191,6094,495,00002,113,536
5Jun 27, 2026 20:095,11312,512,5844,500,00002,113,536
6Jun 27, 2026 20:095,12312,240,9424,509,00002,113,536
7Jun 27, 2026 20:095,12712,178,7904,512,00002,113,536
8Jun 27, 2026 20:095,14412,571,5874,527,00002,113,536
9Jun 27, 2026 20:095,23512,342,6484,607,00002,113,536