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 08:33Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:50Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 15:10031,508,17522,012,00002,113,536expected "20906755551126 ", got "15952777122383 "
2Oct 31, 2026 15:10027,729,03118,364,00002,113,536expected "40066712646732 ", got "31322922513915 "
3Oct 31, 2026 15:10027,822,52318,705,00002,113,536expected "39978227182618 ", got "30816035438881 "
4Jun 6, 2026 08:357,86014,349,2946,917,00002,113,536
5Jun 6, 2026 08:357,92914,594,8256,978,00002,113,536
6Jun 6, 2026 08:357,95614,391,6917,002,00002,113,536
7Jun 6, 2026 08:357,96014,334,5557,005,00002,113,536
8Jun 6, 2026 08:357,96014,387,5757,005,00002,113,536
9Jun 6, 2026 08:357,97014,443,5907,014,00002,113,536
10Jun 6, 2026 08:357,97614,318,5347,019,00002,113,536
11Jun 6, 2026 08:358,12114,873,9017,147,00002,113,536
12Jun 6, 2026 08:358,15416,281,3927,176,00002,113,536