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 18:13Victor MerckléVictor MerckléScore: 5,357Success
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 18:165,33112,209,1944,692,00002,113,536
2Jun 26, 2026 18:165,33512,419,2564,695,00002,113,536
3Jun 26, 2026 18:165,34412,254,0524,703,00002,113,536
4Jun 26, 2026 18:165,34512,177,1924,704,00002,113,536
5Jun 26, 2026 18:165,35712,247,9754,715,00002,113,536
6Jun 26, 2026 18:165,36412,272,5194,721,00002,113,536
7Jun 26, 2026 18:165,36512,262,6944,722,00002,113,536
8Jun 26, 2026 18:165,37012,578,5904,726,00002,113,536
9Jun 26, 2026 18:165,37212,249,6864,728,00002,113,536