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 listApr 20, 2026 16:10Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 03:11Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 04:38080,553,92270,786,00002,113,536expected "29972927679148 ", got "25577627806701 "
2Sep 5, 2026 04:38083,462,41573,553,00002,113,536expected "28183379650782 ", got "23725597604766 "
3Sep 5, 2026 04:38081,630,59671,853,00002,113,536expected "28852419346208 ", got "24785100412744 "
4Apr 20, 2026 16:1121,89534,788,32618,254,0001,014,0002,371,584
5Apr 20, 2026 16:1121,92641,947,56118,280,0001,015,0002,375,680
6Apr 20, 2026 16:1121,94344,660,09618,294,0001,016,0002,379,776
7Apr 20, 2026 16:1121,96441,678,26718,312,0001,017,0002,379,776
8Apr 20, 2026 16:1121,96440,876,53418,312,0001,017,0002,367,488
9Apr 20, 2026 16:1122,03948,550,02818,375,0001,020,0002,371,584
10Apr 20, 2026 16:1122,04738,757,85218,381,0001,021,0002,379,776
11Apr 20, 2026 16:1122,05048,756,78118,383,0001,021,0002,375,680
12Apr 20, 2026 16:1122,10238,525,95918,427,0001,023,0002,256,896