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 13, 2026 12:45Victor MerckléVictor MerckléScore: 7,138Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 12:486,95713,568,8346,123,00002,113,536
2Jun 13, 2026 12:486,97013,613,7296,134,00002,113,536
3Jun 13, 2026 12:487,00713,413,9386,167,00002,113,536
4Jun 13, 2026 12:487,11814,001,1316,264,00002,113,536
5Jun 13, 2026 12:487,13813,646,9476,282,00002,113,536
6Jun 13, 2026 12:487,14213,698,3146,285,00002,113,536
7Jun 13, 2026 12:487,16913,929,6126,309,00002,113,536
8Jun 13, 2026 12:487,40514,188,8096,517,00002,113,536
9Jun 13, 2026 12:487,43414,095,4006,542,00002,113,536