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 23, 2026 05:42Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 03:37Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 04:580151,763,433142,762,00002,113,536expected "29938199333468 ", got "26333410153371 "
2Sep 5, 2026 04:580156,344,279147,907,00002,113,536expected "29032424350318 ", got "24634750132104 "
3Sep 5, 2026 04:580161,488,224152,403,00002,113,536expected "26592172190648 ", got "23413347080251 "
4Jun 23, 2026 05:455,77712,611,1615,084,00002,113,536
5Jun 23, 2026 05:455,86412,811,7885,161,00002,113,536
6Jun 23, 2026 05:455,88112,618,0475,176,00002,113,536
7Jun 23, 2026 05:455,88112,627,6185,176,00002,113,536
8Jun 23, 2026 05:455,88713,050,5885,181,00002,113,536
9Jun 23, 2026 05:455,88912,970,8575,183,00002,113,536
10Jun 23, 2026 05:455,89712,685,9735,190,00002,113,536
11Jun 23, 2026 05:455,89812,912,2165,191,00002,113,536
12Jun 23, 2026 05:455,92512,701,8485,214,00002,113,536