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 8, 2026 21:57Victor MerckléVictor MerckléScore: 7,532Success
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 22:007,43514,003,4356,543,00002,113,536
2Jun 8, 2026 22:007,45714,109,1946,563,00002,113,536
3Jun 8, 2026 22:007,48520,753,7926,587,00002,113,536
4Jun 8, 2026 22:007,51214,054,9026,611,00002,113,536
5Jun 8, 2026 22:007,53214,022,0266,629,00002,113,536
6Jun 8, 2026 22:007,55320,475,0236,647,00002,113,536
7Jun 8, 2026 22:007,63414,224,3676,718,00002,113,536
8Jun 8, 2026 22:007,72814,254,4396,801,00002,113,536
9Jun 8, 2026 22:007,87923,138,2686,934,00002,113,536