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 20, 2026 00:26olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:07Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:08024,182,76015,362,00002,117,632expected "20674634700544 ", got "11082929529043 "stderr
2Oct 5, 2026 21:08024,692,71215,828,00002,117,632expected "20758072571075 ", got "11312606420183 "stderr
3Oct 5, 2026 21:08024,809,55016,006,00002,117,632expected "20821103273639 ", got "10858087983163 "stderr
4Mar 20, 2026 00:2615,62837,077,96013,753,00002,293,760
5Mar 20, 2026 00:2615,62832,947,25513,753,00002,351,104
6Mar 20, 2026 00:2615,65329,892,51013,775,00002,519,040
7Mar 20, 2026 00:2615,79534,723,92712,908,000992,0002,486,272
8Mar 20, 2026 00:2615,80930,256,35613,912,00002,519,040
9Mar 20, 2026 00:2615,81038,081,03012,920,000993,0002,514,944
10Mar 20, 2026 00:2615,82733,323,41912,934,000994,0002,486,272
11Mar 20, 2026 00:2615,83439,673,83712,939,000995,0002,498,560
12Mar 20, 2026 00:2615,84329,458,55812,947,000995,0002,273,280