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 listFeb 14, 2026 16:17olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 20:59Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:04034,545,21525,803,00002,113,536expected "20973472959409 ", got "15721066497487 "
2Oct 5, 2026 21:04027,250,91418,582,00002,113,536expected "40026003602515 ", got "31375889945436 "
3Oct 5, 2026 21:04035,345,83226,562,00002,113,536expected "20596545440985 ", got "16149557132756 "
4Feb 14, 2026 16:1727,64245,795,61023,312,0001,013,0002,486,272
5Feb 14, 2026 16:1727,65549,710,19524,336,00002,486,272
6Feb 14, 2026 16:1727,68442,081,08624,362,00002,482,176
7Feb 14, 2026 16:1727,74144,951,96824,412,00002,490,368
8Feb 14, 2026 16:1727,75645,024,13224,425,00002,473,984
9Feb 14, 2026 16:1727,79745,788,02024,461,00002,486,272
10Feb 14, 2026 16:1727,84149,704,26624,500,00002,478,080
11Feb 14, 2026 16:1727,85344,143,12023,490,0001,021,0002,469,888
12Feb 14, 2026 16:1727,91145,223,08124,562,00002,494,464