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 6, 2026 07:28Victor 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:40027,328,37618,353,00002,113,536expected "40012326382127 ", got "31145827804781 "
2Oct 31, 2026 14:40030,151,91220,669,00002,113,536expected "20770707039164 ", got "16130146569842 "
3Oct 31, 2026 14:40032,006,90322,482,00002,113,536expected "20872619047019 ", got "15875457393672 "
4Jun 6, 2026 07:308,82815,219,1367,769,00002,113,536
5Jun 6, 2026 07:308,83415,203,5667,774,00002,113,536
6Jun 6, 2026 07:308,84015,198,6637,780,00002,113,536
7Jun 6, 2026 07:308,85615,249,0017,794,00002,113,536
8Jun 6, 2026 07:308,86115,223,3547,798,00002,113,536
9Jun 6, 2026 07:308,89015,186,7407,824,00002,113,536
10Jun 6, 2026 07:308,95115,293,1517,877,00002,113,536
11Jun 6, 2026 07:309,03115,368,9637,948,00002,113,536
12Jun 6, 2026 07:309,15415,476,1178,056,00002,113,536