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 26, 2026 18:02Victor MerckléVictor MerckléScore: 5,142Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 18:045,03611,939,4454,432,00002,113,536
2Jun 26, 2026 18:045,05511,925,6074,449,00002,113,536
3Jun 26, 2026 18:045,08512,029,0214,475,00002,113,536
4Jun 26, 2026 18:045,09011,979,8004,480,00002,113,536
5Jun 26, 2026 18:045,14211,972,3144,525,00002,113,536
6Jun 26, 2026 18:045,14411,981,6564,527,00002,113,536
7Jun 26, 2026 18:045,15411,957,3894,536,00002,113,536
8Jun 26, 2026 18:045,16712,279,1164,547,00002,113,536
9Jun 26, 2026 18:045,24612,051,9454,617,00002,113,536