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 04:35zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:37M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:3708,216,1581,025,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:3708,957,3401,102,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:3708,289,011988,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 04:343,34219,449,6001,961,000980,0002,347,008
5Feb 7, 2026 04:343,34318,539,3532,942,00002,342,912
6Feb 7, 2026 04:343,36621,512,5351,975,000987,0002,355,200
7Feb 7, 2026 04:343,38524,709,9411,986,000993,0002,347,008
8Feb 7, 2026 04:343,39520,890,627996,0001,992,0002,510,848
9Feb 7, 2026 04:343,39721,148,9561,993,000996,0002,342,912
10Feb 7, 2026 04:343,40619,202,3931,998,000999,0002,347,008
11Feb 7, 2026 04:343,41020,170,8431,000,0002,001,0002,351,104
12Feb 7, 2026 04:343,41419,531,9512,003,0001,001,0002,347,008
13Feb 7, 2026 04:343,44017,752,0121,009,0002,018,0002,347,008
14Feb 7, 2026 04:353,46521,152,2661,016,0002,033,0002,359,296
15Feb 7, 2026 04:343,48819,294,0021,023,0002,046,0002,351,104
16Feb 7, 2026 04:353,50821,203,0051,029,0002,058,0002,347,008
17Feb 7, 2026 04:344,26520,701,7283,753,00002,338,816
18Feb 7, 2026 04:354,41618,460,0141,943,0001,943,0002,453,504