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 15, 2026 17:20Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:42Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 01:140153,368,905144,984,00002,113,536expected "30595093281495 ", got "25647695906483 "
2Sep 5, 2026 01:140158,886,340149,341,0001,070,0002,113,536expected "27205245961571 ", got "24110529201955 "
3Sep 5, 2026 01:140163,977,284155,693,00002,113,536expected "26726592319601 ", got "22986249729891 "
4Jun 15, 2026 17:297,08413,601,0086,234,00002,113,536
5Jun 15, 2026 17:297,18613,659,7636,324,00002,113,536
6Jun 15, 2026 17:297,19813,606,8006,335,00002,113,536
7Jun 15, 2026 17:297,20113,694,9276,337,00002,113,536
8Jun 15, 2026 17:297,22213,653,7326,356,00002,113,536
9Jun 15, 2026 17:297,29613,728,6956,421,00002,113,536
10Jun 15, 2026 17:297,33513,801,0296,455,00002,113,536
11Jun 15, 2026 17:297,34013,796,4076,460,00002,113,536
12Jun 15, 2026 17:297,42013,874,5306,530,00002,113,536