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 8, 2026 20:25zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 30, 2026 16:28Victor Mercklé10.00CustomSolution Broken
Apr 30, 2026 15:31Victor Mercklé10.00RecheckSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 16:28018,046,97201,278,000348,160No answer to stdout. Died or killed?
2Mar 8, 2026 20:252,95217,519,2092,598,00002,437,120
3Mar 8, 2026 20:252,96917,213,7152,613,00002,437,120
4Mar 8, 2026 20:252,97518,708,4232,618,00002,445,312
5Mar 8, 2026 20:252,98123,178,4712,623,00002,269,184
6Mar 8, 2026 20:252,98425,868,6882,626,00002,449,408
7Mar 8, 2026 20:252,99117,575,4382,632,00002,445,312
8Mar 8, 2026 20:262,99316,023,1732,634,00002,445,312
9Mar 8, 2026 20:252,99817,775,6062,638,00002,437,120
10Mar 8, 2026 20:262,99919,989,1822,639,00002,441,216
11Mar 8, 2026 20:253,00324,055,1792,643,00002,437,120
12Mar 8, 2026 20:263,00716,924,6592,646,00002,445,312
13Mar 8, 2026 20:263,00923,275,7172,648,00002,441,216
14Mar 8, 2026 20:253,01925,214,9602,657,00002,269,184
15Mar 8, 2026 20:263,03319,562,9312,669,00002,441,216
16Mar 8, 2026 20:253,03913,347,8512,674,00002,433,024
17Mar 8, 2026 20:253,12522,208,8332,750,00002,437,120
18Mar 8, 2026 20:253,15820,204,1992,779,00002,531,328
19Mar 8, 2026 20:253,18321,879,9482,801,00002,437,120
20Apr 30, 2026 15:313,20620,310,8301,411,0001,411,0002,420,736
21Apr 30, 2026 15:313,30120,232,465968,0001,937,0002,433,024
22Mar 8, 2026 20:253,46525,438,7502,033,0001,016,0002,437,120
23Mar 8, 2026 20:263,48917,272,8162,047,0001,023,0002,273,280
24Mar 8, 2026 20:253,54522,855,3812,080,0001,040,0002,441,216
25Apr 30, 2026 15:313,62319,384,0312,126,0001,063,0002,424,832