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 21, 2026 12:59Victor MerckléVictor MerckléScore: 6,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 13:016,69613,392,7595,893,00002,113,536
2Jun 21, 2026 13:016,73913,406,5825,931,00002,113,536
3Jun 21, 2026 13:016,78813,375,2155,974,00002,113,536
4Jun 21, 2026 13:016,79213,413,6775,977,00002,113,536
5Jun 21, 2026 13:016,79513,404,8885,980,00002,113,536
6Jun 21, 2026 13:016,80613,466,7165,990,00002,113,536
7Jun 21, 2026 13:016,81213,422,3375,995,00002,113,536
8Jun 21, 2026 13:016,83213,466,6686,013,00002,113,536
9Jun 21, 2026 13:016,83213,450,6256,013,00002,113,536