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:38Victor 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 14:54038,509,89429,509,00002,113,536expected "23383213567259 ", got "18999012156878 "
2Oct 31, 2026 14:54029,723,75720,758,00002,113,536expected "20525705942552 ", got "16361234270319 "
3Oct 31, 2026 14:54027,567,78518,543,00002,113,536expected "40048310026538 ", got "31116259112613 "
4Jun 6, 2026 08:407,74814,275,9956,819,00002,113,536
5Jun 6, 2026 08:407,75014,281,0726,820,00002,113,536
6Jun 6, 2026 08:407,77014,274,3216,838,00002,113,536
7Jun 6, 2026 08:407,81914,202,8276,881,00002,113,536
8Jun 6, 2026 08:407,84814,264,7386,907,00002,113,536
9Jun 6, 2026 08:407,86714,325,0716,923,00002,113,536
10Jun 6, 2026 08:407,88214,390,7566,937,00002,113,536
11Jun 6, 2026 08:408,00414,418,8127,044,00002,113,536
12Jun 6, 2026 08:408,03114,455,9697,068,00002,113,536