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 29, 2026 15:57Victor MerckléVictor MerckléScore: 4,979Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 16:004,85512,006,0884,273,00002,113,536
2Jun 29, 2026 16:004,92212,044,8004,332,00002,113,536
3Jun 29, 2026 16:004,95212,027,8974,358,00002,113,536
4Jun 29, 2026 16:004,96812,450,3924,372,00002,113,536
5Jun 29, 2026 16:004,97912,052,0344,382,00002,113,536
6Jun 29, 2026 16:004,98912,362,5784,391,00002,113,536
7Jun 29, 2026 16:004,99212,331,7774,393,00002,113,536
8Jun 29, 2026 16:005,35712,463,7464,715,00002,113,536
9Jun 29, 2026 16:005,43212,780,6514,781,00002,113,536