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 27, 2026 05:17Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:39031,612,80322,107,00002,113,536expected "20695072998361 ", got "16284619415147 "
2Oct 31, 2026 14:39039,129,92229,995,00002,113,536expected "23198811763791 ", got "19250558126661 "
3Oct 31, 2026 14:39028,450,40019,331,00002,113,536expected "40516512897938 ", got "30540655053966 "
4Jun 27, 2026 05:195,12612,207,9644,511,00002,113,536
5Jun 27, 2026 05:195,13212,159,6484,517,00002,113,536
6Jun 27, 2026 05:195,13512,137,0674,519,00002,113,536
7Jun 27, 2026 05:195,14011,972,0374,524,00002,113,536
8Jun 27, 2026 05:195,17612,150,9044,555,00002,113,536
9Jun 27, 2026 05:195,25112,229,9084,621,00002,113,536
10Jun 27, 2026 05:195,27212,154,1114,640,00002,113,536
11Jun 27, 2026 05:195,28012,228,4764,647,00002,113,536
12Jun 27, 2026 05:195,40112,530,4204,753,00002,113,536