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 listMar 28, 2026 10:09Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 24, 2026 13:06Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 13:07023,042,40615,427,0001,028,0002,428,928expected "11162496987759 ", got "11162496941340 "
2Apr 24, 2026 13:07022,963,25116,260,0001,016,0002,527,232expected "10941416085045 ", got "10941416038421 "
3Apr 24, 2026 13:07023,007,18316,409,0001,025,0002,318,336expected "11012304633891 ", got "11012304587308 "
4Mar 28, 2026 10:0910,15522,731,1578,936,00002,482,176
5Mar 28, 2026 10:0910,16324,188,1857,950,000993,0002,473,984
6Mar 28, 2026 10:0910,19224,932,5267,973,000996,0002,277,376
7Mar 28, 2026 10:0910,21824,656,2697,993,000999,0002,469,888
8Mar 28, 2026 10:0910,22023,570,0967,995,000999,0002,465,792
9Mar 28, 2026 10:0910,28929,716,6598,048,0001,006,0002,469,888
10Mar 28, 2026 10:0910,31127,289,0867,058,0002,016,0002,469,888
11Mar 28, 2026 10:0910,33124,706,4088,081,0001,010,0002,465,792
12Mar 28, 2026 10:0910,35628,164,2337,088,0002,025,0002,531,328