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 11, 2026 07:43Victor MerckléVictor MerckléScore: 7,069Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 07:456,95213,341,6216,118,00002,113,536
2Jun 11, 2026 07:456,95213,641,3516,118,00002,113,536
3Jun 11, 2026 07:456,98913,387,8166,151,00002,113,536
4Jun 11, 2026 07:457,04813,725,7746,203,00002,113,536
5Jun 11, 2026 07:457,06913,433,9186,221,00002,113,536
6Jun 11, 2026 07:457,07913,402,1316,230,00002,113,536
7Jun 11, 2026 07:457,16113,513,5596,302,00002,113,536
8Jun 11, 2026 07:457,32015,005,6506,442,00002,113,536
9Jun 11, 2026 07:457,32113,692,4936,443,00002,113,536