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 18:54Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:26M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:2808,836,6781,593,00002,121,728expected "6442459076 ", got "14817477429 "stderr
2May 17, 2026 07:2809,285,4341,728,00002,121,728expected "6442459076 ", got "14817477429 "stderr
3May 17, 2026 07:28011,019,5791,680,00002,121,728expected "6442459076 ", got "14817477429 "stderr
4Mar 20, 2026 18:5411,26122,816,0368,809,0001,101,0002,527,232
5Mar 20, 2026 18:5411,28129,556,5548,935,000992,0002,531,328
6Mar 20, 2026 18:5411,33025,246,9808,973,000997,0002,531,328
7Mar 20, 2026 18:5411,36426,607,3549,000,0001,000,0002,531,328
8Mar 20, 2026 18:5411,41122,879,3369,038,0001,004,0002,269,184
9Mar 20, 2026 18:5411,41531,110,6468,036,0002,009,0002,428,928
10Mar 20, 2026 18:5411,41731,584,7439,043,0001,004,0002,433,024
11Mar 20, 2026 18:5411,42028,030,3498,040,0002,010,0002,269,184
12Mar 20, 2026 18:5411,50725,511,5249,114,0001,012,0002,424,832