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 listFeb 7, 2026 17:03zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:26M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2609,983,6121,039,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2608,323,5511,019,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:2609,925,2471,028,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 17:013,32522,053,3481,951,000975,0002,351,104
5Feb 7, 2026 17:033,32617,533,5502,927,00002,342,912
6Feb 7, 2026 17:023,33220,730,0781,955,000977,0002,342,912
7Feb 7, 2026 17:153,33517,975,2551,957,000978,0002,342,912
8Feb 7, 2026 17:013,34119,666,0301,960,000980,0002,351,104
9Feb 7, 2026 17:033,34518,894,0861,963,000981,0002,355,200
10Feb 7, 2026 17:033,34822,583,6902,946,00002,351,104
11Feb 7, 2026 17:013,35122,334,5142,949,00002,347,008
12Feb 7, 2026 17:013,35619,870,7811,969,000984,0002,347,008
13Feb 7, 2026 17:023,36817,189,8951,976,000988,0002,347,008
14Feb 7, 2026 17:013,36821,236,8771,976,000988,0002,342,912
15Feb 7, 2026 17:153,37317,216,5801,979,000989,0002,347,008
16Feb 7, 2026 17:033,38615,264,8711,987,000993,0002,277,376
17Feb 7, 2026 17:033,39218,908,6881,990,000995,0002,342,912
18Feb 7, 2026 17:033,39521,029,1741,992,000996,0002,535,424
19Feb 7, 2026 17:033,39919,070,153997,0001,994,0002,351,104
20Feb 7, 2026 17:033,40224,456,2481,996,000998,0002,338,816
21Feb 7, 2026 17:033,40920,865,0982,000,0001,000,0002,347,008
22Feb 7, 2026 17:013,42722,377,4392,011,0001,005,0002,342,912
23Feb 7, 2026 17:033,44822,134,3442,023,0001,011,0002,338,816
24Feb 7, 2026 17:023,48417,444,4642,044,0001,022,0002,277,376
25Feb 7, 2026 17:033,76319,081,8933,311,00002,338,816
26Feb 7, 2026 17:154,23922,510,2573,730,00002,351,104
27Feb 7, 2026 17:034,45123,582,2882,938,000979,0002,351,104