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 28, 2026 12:06Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:35M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:36011,030,2602,386,00002,117,632expected "6442459076 ", got "14623443812 "
2May 17, 2026 08:36012,081,7472,516,00002,117,632expected "6442459076 ", got "14623443812 "
3May 17, 2026 08:36011,915,5202,494,00002,117,632expected "6442459076 ", got "14623443812 "
4Apr 28, 2026 12:0710,31427,475,2287,060,0002,017,0002,363,392
5Apr 28, 2026 12:0710,31727,615,9127,062,0002,017,0002,359,296
6Apr 28, 2026 12:0710,32725,540,3567,069,0002,019,0002,363,392
7Apr 28, 2026 12:0710,37827,714,4967,104,0002,029,0002,326,528
8Apr 28, 2026 12:0710,38024,163,7006,090,0003,045,0002,367,488
9Apr 28, 2026 12:0710,40727,454,4487,124,0002,035,0002,367,488
10Apr 28, 2026 12:0710,48727,677,0058,204,0001,025,0002,359,296
11Apr 28, 2026 12:0710,51828,634,8627,199,0002,057,0002,326,528
12Apr 28, 2026 12:0710,57127,025,1258,270,0001,033,0002,367,488