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 6, 2026 08:15Victor MerckléVictor MerckléScore: 8,676Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2026 08:178,65215,079,9047,614,00002,113,536
2Jun 6, 2026 08:178,65615,069,8847,618,00002,113,536
3Jun 6, 2026 08:178,65915,115,1007,620,00002,113,536
4Jun 6, 2026 08:178,66215,075,7357,623,00002,113,536
5Jun 6, 2026 08:178,67617,566,2517,635,00002,113,536
6Jun 6, 2026 08:178,69715,045,6407,654,00002,113,536
7Jun 6, 2026 08:178,76215,131,4227,711,00002,113,536
8Jun 6, 2026 08:178,78115,116,5597,728,00002,113,536
9Jun 6, 2026 08:178,86315,289,1127,800,00002,113,536