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 19, 2026 18:22Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 10:09Tomislav Tunkovic14.95CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 10:10048,728,77337,859,0001,034,0002,146,304expected "27873749719817 ", got "22671609023135 "
2Sep 9, 2026 10:10049,115,41839,235,00002,146,304expected "27420636530572 ", got "22590861594169 "
3Sep 9, 2026 10:10047,019,79236,218,0001,035,0002,146,304expected "30041024885077 ", got "25097545692491 "
4Mar 19, 2026 18:2213,98029,049,27312,302,00002,338,816
5Mar 19, 2026 18:2214,00335,026,53312,323,00002,338,816
6Mar 19, 2026 18:2214,03930,159,55911,325,0001,029,0002,347,008
7Mar 19, 2026 18:2214,04029,140,22611,326,0001,029,0002,351,104
8Mar 19, 2026 18:2214,05627,052,21612,369,00002,355,200
9Mar 19, 2026 18:2214,14731,113,89911,412,0001,037,0002,355,200
10Mar 19, 2026 18:2214,21032,907,94311,463,0001,042,0002,347,008
11Mar 19, 2026 18:2214,24428,998,97212,535,00002,465,792
12Mar 19, 2026 18:2214,26929,855,80911,511,0001,046,0002,342,912