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 23, 2026 16:01Victor MerckléVictor MerckléScore: 5,260Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 16:045,18011,830,7564,559,00002,113,536
2Jun 23, 2026 16:045,23812,049,1374,610,00002,113,536
3Jun 23, 2026 16:045,25712,059,6174,627,00002,113,536
4Jun 23, 2026 16:045,25912,207,1344,628,00002,113,536
5Jun 23, 2026 16:045,26012,090,9914,629,00002,113,536
6Jun 23, 2026 16:045,26112,428,5914,630,00002,113,536
7Jun 23, 2026 16:045,27012,149,1954,638,00002,113,536
8Jun 23, 2026 16:045,28112,395,2044,648,00002,113,536
9Jun 23, 2026 16:045,45712,601,9964,803,00002,113,536