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 7, 2026 01:22Victor MerckléVictor MerckléScore: 9,143Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 01:258,65615,153,6507,618,00002,113,536
2Jun 7, 2026 01:258,67115,178,9157,631,00002,113,536
3Jun 7, 2026 01:258,68515,605,7937,643,00002,113,536
4Jun 7, 2026 01:258,74015,195,4717,692,00002,113,536
5Jun 7, 2026 01:259,14322,577,7318,046,00002,113,536
6Jun 7, 2026 01:259,61215,907,2748,459,00002,113,536
7Jun 7, 2026 01:259,72216,072,7738,556,00002,113,536
8Jun 7, 2026 01:259,79016,483,6608,616,00002,113,536
9Jun 7, 2026 01:2510,03616,309,0458,832,00002,113,536