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 23:57Victor MerckléVictor MerckléScore: 8,171Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 00:008,07614,614,5287,107,00002,113,536
2Jun 8, 2026 00:008,09414,551,9867,123,00002,113,536
3Jun 8, 2026 00:008,10214,673,0027,130,00002,113,536
4Jun 8, 2026 00:008,15114,605,2447,173,00002,113,536
5Jun 8, 2026 00:008,17114,955,2247,191,00002,113,536
6Jun 8, 2026 00:008,17714,875,4717,196,00002,113,536
7Jun 8, 2026 00:008,19514,644,3707,212,00002,113,536
8Jun 8, 2026 00:008,20714,869,0687,223,00002,113,536
9Jun 8, 2026 00:008,29314,982,6967,298,00002,113,536