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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:14M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1408,492,3931,150,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 05:1408,790,746988,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 05:1408,447,2491,239,00002,113,536expected "6442459076 ", got "2305422578 "
4Feb 21, 2026 21:233,12620,854,2812,751,00002,433,024
5Feb 21, 2026 21:233,13017,023,2652,754,00002,433,024
6Feb 21, 2026 21:233,14720,915,2742,769,00002,437,120
7Feb 21, 2026 21:233,15122,630,4602,773,00002,437,120
8Feb 21, 2026 21:233,15318,228,7002,775,00002,441,216
9Feb 21, 2026 21:253,15718,356,9852,778,00002,433,024
10Feb 21, 2026 21:253,16716,712,1682,787,00002,433,024
11Feb 21, 2026 21:233,16918,083,6172,789,00002,437,120
12Feb 21, 2026 21:233,17419,518,4952,793,00002,428,928
13Feb 21, 2026 21:233,17819,565,5042,797,00002,437,120
14Feb 21, 2026 21:253,18324,857,1102,801,00002,441,216
15Feb 21, 2026 21:243,18620,217,8262,804,00002,273,280
16Feb 21, 2026 21:233,31321,023,8142,915,00002,428,928
17Feb 21, 2026 21:243,31520,652,5391,945,000972,0002,424,832
18Feb 21, 2026 21:253,31718,634,4361,946,000973,0002,437,120
19Feb 21, 2026 21:233,32416,974,8901,950,000975,0002,433,024
20Feb 21, 2026 21:253,32425,732,0052,925,00002,433,024
21Feb 21, 2026 21:233,34517,012,3561,963,000981,0002,445,312
22Feb 21, 2026 21:253,61424,962,3202,120,0001,060,0002,428,928
23Feb 21, 2026 21:233,87224,660,8073,407,00002,433,024
24Feb 21, 2026 21:243,93124,158,4983,459,00002,277,376