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 14:22Victor 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:42039,402,79430,541,00002,113,536expected "23358601457597 ", got "19085978319667 "
2Oct 31, 2026 14:42027,282,91618,594,00002,113,536expected "39850005994705 ", got "31254368878668 "
3Oct 31, 2026 14:42027,479,14918,596,00002,113,536expected "39973195423064 ", got "31157393418961 "
4Jun 27, 2026 14:255,05511,783,3454,449,00002,113,536
5Jun 27, 2026 14:255,07711,864,8424,468,00002,113,536
6Jun 27, 2026 14:255,16112,052,5514,542,00002,113,536
7Jun 27, 2026 14:255,17011,930,6414,550,00002,113,536
8Jun 27, 2026 14:255,17611,896,4724,555,00002,113,536
9Jun 27, 2026 14:255,18111,901,6694,560,00002,113,536
10Jun 27, 2026 14:255,20111,898,9574,577,00002,113,536
11Jun 27, 2026 14:255,27811,990,5184,645,00002,113,536
12Jun 27, 2026 14:255,45412,155,9124,800,00002,113,536