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 20:53Victor MerckléVictor MerckléScore: 5,129Success
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 20:565,01911,975,6524,417,00002,113,536
2Jun 26, 2026 20:565,02911,968,5184,426,00002,113,536
3Jun 26, 2026 20:565,04012,017,2474,436,00002,113,536
4Jun 26, 2026 20:565,11912,234,4804,505,00002,113,536
5Jun 26, 2026 20:565,12912,067,6924,514,00002,113,536
6Jun 26, 2026 20:565,13412,024,3584,518,00002,113,536
7Jun 26, 2026 20:565,14412,421,6324,527,00002,113,536
8Jun 26, 2026 20:565,14812,075,0614,531,00002,113,536
9Jun 26, 2026 20:565,16312,097,5264,544,00002,113,536