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 26, 2026 03:19zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:15M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1509,276,3781,041,00002,113,536expected "6442459076 ", got "2305422677 "
2May 17, 2026 05:15010,397,9951,066,00002,113,536expected "6442459076 ", got "2305422677 "
3May 17, 2026 05:1508,499,6241,105,00002,113,536expected "6442459076 ", got "2305422677 "
4Feb 26, 2026 03:213,09519,329,3342,724,00002,428,928
5Feb 26, 2026 03:183,09917,989,0492,727,00002,428,928
6Feb 26, 2026 03:183,10220,327,0722,730,00002,424,832
7Feb 26, 2026 03:213,13221,562,2162,756,00002,428,928
8Feb 26, 2026 03:183,13621,237,1242,760,00002,420,736
9Feb 26, 2026 03:183,15724,263,3352,778,00002,424,832
10Feb 26, 2026 03:193,16721,209,4752,787,00002,424,832
11Feb 26, 2026 03:183,27618,133,9151,922,000961,0002,420,736
12Feb 26, 2026 03:213,28119,810,215962,0001,925,0002,424,832
13Feb 26, 2026 03:213,29016,764,848965,0001,930,0002,428,928
14Feb 26, 2026 03:183,30720,771,7681,940,000970,0002,428,928
15Feb 26, 2026 03:213,31118,606,7261,943,000971,0002,277,376
16Feb 26, 2026 03:203,32018,389,4922,922,00002,424,832
17Feb 26, 2026 03:193,32420,390,6111,950,000975,0002,428,928
18Feb 26, 2026 03:203,32421,096,5161,950,000975,0002,277,376
19Feb 26, 2026 03:203,32522,488,5771,951,000975,0002,424,832
20Feb 26, 2026 03:193,83019,516,0932,247,0001,123,0002,420,736
21Feb 26, 2026 03:213,83521,186,2463,375,00002,420,736