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 17:20zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:26M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:26010,578,0521,105,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2608,346,1291,038,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:2608,567,3481,101,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 17:193,31521,329,9571,945,000972,0002,510,848
5Feb 7, 2026 17:193,32016,764,1261,948,000974,0002,519,040
6Feb 7, 2026 17:193,32523,770,4431,951,000975,0002,342,912
7Feb 7, 2026 17:193,32716,408,2651,952,000976,0002,347,008
8Feb 7, 2026 17:183,32824,466,3661,953,000976,0002,506,752
9Feb 7, 2026 17:203,34120,665,2421,960,000980,0002,351,104
10Feb 8, 2026 01:553,34219,405,0261,961,000980,0002,535,424
11Feb 8, 2026 03:153,34524,256,1891,963,000981,0002,351,104
12Feb 7, 2026 17:193,35821,796,8831,970,000985,0002,342,912
13Feb 7, 2026 17:183,36516,750,9601,974,000987,0002,531,328
14Feb 8, 2026 01:553,38921,925,9081,988,000994,0002,355,200
15Feb 8, 2026 03:153,45722,556,0592,028,0001,014,0002,359,296
16Feb 8, 2026 01:553,45816,865,7821,014,0002,029,0002,490,368
17Feb 7, 2026 17:183,46520,621,7092,033,0001,016,0002,342,912
18Feb 8, 2026 03:153,47517,715,8732,039,0001,019,0002,355,200
19Feb 8, 2026 03:153,48924,270,2382,047,0001,023,0002,277,376
20Feb 8, 2026 03:153,49120,214,5302,048,0001,024,0002,347,008
21Feb 7, 2026 17:203,52520,076,3282,068,0001,034,0002,355,200
22Feb 7, 2026 17:194,10019,510,1413,608,00002,347,008
23Feb 7, 2026 17:204,23817,908,4283,729,00002,351,104
24Feb 8, 2026 03:154,47721,009,0782,955,000985,0002,527,232