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:38Victor 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:415,01111,925,4374,410,00002,113,536
2Jun 26, 2026 20:415,09312,011,9304,482,00002,113,536
3Jun 26, 2026 20:415,10512,041,5424,493,00002,113,536
4Jun 26, 2026 20:415,12012,007,7234,506,00002,113,536
5Jun 26, 2026 20:415,12911,995,3104,514,00002,113,536
6Jun 26, 2026 20:415,13012,371,9114,515,00002,113,536
7Jun 26, 2026 20:415,13112,029,7224,516,00002,113,536
8Jun 26, 2026 20:415,13812,210,4534,522,00002,113,536
9Jun 26, 2026 20:415,37512,661,3194,730,00002,113,536