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 19:53Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:23M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:25011,048,0441,702,00002,121,728expected "6442459076 ", got "14817477429 "stderr
2May 17, 2026 07:25010,675,6831,728,00002,121,728expected "6442459076 ", got "14817477429 "stderr
3May 17, 2026 07:2509,423,1711,732,00002,121,728expected "6442459076 ", got "14817477429 "stderr
4Mar 20, 2026 19:5110,80725,715,8569,510,00002,424,832
5Mar 20, 2026 19:5110,84524,986,6428,484,0001,060,0002,527,232
6Mar 20, 2026 19:5110,87430,478,8908,506,0001,063,0002,527,232
7Mar 20, 2026 19:5110,90624,585,3358,531,0001,066,0002,527,232
8Mar 20, 2026 19:5310,96630,616,9228,578,0001,072,0002,527,232
9Mar 20, 2026 19:5310,99326,932,0939,674,00002,265,088
10Mar 20, 2026 19:5311,00825,290,1718,611,0001,076,0002,420,736
11Mar 20, 2026 19:5111,01627,668,1338,617,0001,077,0002,424,832
12Mar 20, 2026 19:5311,01823,205,7539,696,00002,424,832
13Mar 20, 2026 19:5111,02227,317,3288,622,0001,077,0002,424,832
14Mar 20, 2026 19:5311,02724,483,3918,626,0001,078,0002,527,232
15Mar 20, 2026 19:5311,04726,909,0109,721,00002,416,640
16Mar 20, 2026 19:5111,04725,375,5848,641,0001,080,0002,428,928
17Mar 20, 2026 19:5311,06423,762,3569,736,00002,416,640
18Mar 20, 2026 19:5111,09338,233,2887,810,0001,952,0002,527,232
19Mar 20, 2026 19:5111,19327,623,7109,850,00002,416,640
20Mar 20, 2026 19:5311,22334,989,0079,876,00002,514,944
21Mar 20, 2026 19:5311,33436,597,3918,977,000997,0002,265,088