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 4, 2026 20:13Victor MerckléVictor MerckléScore: 4,556Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 20:164,51119,630,5863,970,00002,117,632stderr
2Jul 4, 2026 20:164,51511,795,6703,974,00002,117,632stderr
3Jul 4, 2026 20:164,53611,764,2963,992,00002,117,632stderr
4Jul 4, 2026 20:164,54511,723,2664,000,00002,117,632stderr
5Jul 4, 2026 20:164,55611,843,1494,010,00002,117,632stderr
6Jul 4, 2026 20:164,60311,772,8114,051,00002,117,632stderr
7Jul 4, 2026 20:164,63420,129,4874,078,00002,117,632stderr
8Jul 4, 2026 20:164,63611,846,0894,080,00002,117,632stderr
9Jul 4, 2026 20:164,95912,273,4534,364,00002,117,632stderr