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 18:32zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:12M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1308,888,8901,073,00002,113,536expected "6442459076 ", got "2305422681 "
2May 17, 2026 05:13010,010,1491,070,00002,113,536expected "6442459076 ", got "2305422681 "
3May 17, 2026 05:1308,214,324981,00002,113,536expected "6442459076 ", got "2305422681 "
4Mar 8, 2026 18:352,94521,214,2682,592,00002,449,408
5Mar 8, 2026 18:352,96019,260,6332,605,00002,433,024
6Mar 8, 2026 18:352,97820,093,2432,621,00002,449,408
7Mar 8, 2026 18:352,98420,351,1632,626,00002,441,216
8Mar 8, 2026 18:322,98823,116,4602,629,00002,445,312
9Mar 8, 2026 18:342,99020,440,7782,631,00002,453,504
10Mar 8, 2026 18:353,01119,526,4362,650,00002,445,312
11Mar 8, 2026 18:343,02719,784,8302,664,00002,449,408
12Mar 8, 2026 18:343,04314,602,3382,678,00002,531,328
13Mar 8, 2026 18:353,08419,082,2192,714,00002,445,312
14Mar 8, 2026 18:343,09922,401,7672,727,00002,441,216
15Mar 8, 2026 18:353,10317,371,6372,731,00002,441,216
16Mar 8, 2026 18:343,11419,134,1072,740,00002,449,408
17Mar 8, 2026 18:343,13220,595,6662,756,00002,437,120
18Mar 8, 2026 18:343,32715,762,4602,928,00002,441,216
19Mar 8, 2026 18:343,43616,414,4482,016,0001,008,0002,441,216
20Mar 8, 2026 18:353,45520,274,5322,027,0001,013,0002,531,328
21Mar 8, 2026 18:343,46716,957,2192,034,0001,017,0002,273,280
22Mar 8, 2026 18:323,46815,980,2112,035,0001,017,0002,441,216
23Mar 8, 2026 18:353,48915,511,9052,047,0001,023,0002,441,216
24Mar 8, 2026 18:323,58017,905,9672,100,0001,050,0002,531,328