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:20Victor MerckléVictor MerckléScore: 6,984Success
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:226,86213,570,5136,039,00002,113,536
2Jun 19, 2026 22:226,89813,579,9786,071,00002,113,536
3Jun 19, 2026 22:226,97613,585,7266,139,00002,113,536
4Jun 19, 2026 22:226,98113,589,8666,144,00002,113,536
5Jun 19, 2026 22:226,98413,600,4446,146,00002,113,536
6Jun 19, 2026 22:227,01013,607,1166,169,00002,113,536
7Jun 19, 2026 22:227,02613,710,4926,183,00002,113,536
8Jun 19, 2026 22:227,03913,662,7866,195,00002,113,536
9Jun 19, 2026 22:227,07713,911,3036,228,00002,113,536