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 listJul 3, 2026 03:19Victor MerckléVictor MerckléScore: 4,530Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 03:224,41411,623,0383,885,00002,117,632stderr
2Jul 3, 2026 03:224,41911,667,8803,889,00002,117,632stderr
3Jul 3, 2026 03:224,43712,146,3103,905,00002,117,632stderr
4Jul 3, 2026 03:224,52511,665,7113,982,00002,117,632stderr
5Jul 3, 2026 03:224,53011,658,3273,987,00002,117,632stderr
6Jul 3, 2026 03:224,54011,716,1843,996,00002,117,632stderr
7Jul 3, 2026 03:224,54212,010,7963,997,00002,117,632stderr
8Jul 3, 2026 03:224,54713,341,8314,002,00002,117,632stderr
9Jul 3, 2026 03:224,79811,962,8294,223,00002,117,632stderr