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 06:46Victor 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:08026,929,07917,473,00002,113,536expected "39779216370003 ", got "31379097019093 "
2Oct 31, 2026 15:08038,834,18129,457,00002,113,536expected "23394952008381 ", got "18836530873548 "
3Oct 31, 2026 15:08027,388,10618,017,00002,113,536expected "40032148261888 ", got "31320147515767 "
4Jun 6, 2026 06:499,22915,562,4628,122,00002,113,536
5Jun 6, 2026 06:499,27115,619,9318,159,00002,113,536
6Jun 6, 2026 06:499,28915,596,0068,175,00002,113,536
7Jun 6, 2026 06:499,30115,635,6578,185,00002,113,536
8Jun 6, 2026 06:499,30615,620,1578,190,00002,113,536
9Jun 6, 2026 06:499,30915,581,6868,192,00002,113,536
10Jun 6, 2026 06:499,31515,624,8658,198,00002,113,536
11Jun 6, 2026 06:499,31515,616,5268,198,00002,113,536
12Jun 6, 2026 06:499,32915,697,8078,210,00002,113,536