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 listJan 16, 2026 02:47zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:40M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:4008,366,1541,202,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:40010,339,8401,165,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:4009,537,8411,118,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 16, 2026 02:213,36116,596,0691,972,000986,0002,355,200
5Jan 16, 2026 02:213,38615,983,7121,987,000993,0002,277,376
6Jan 16, 2026 02:453,39218,103,8021,990,000995,0002,363,392
7Jan 16, 2026 02:203,39916,458,2241,994,000997,0002,277,376
8Jan 16, 2026 02:453,40318,062,4831,997,000998,0002,535,424
9Jan 16, 2026 02:453,40722,496,8321,999,000999,0002,363,392
10Jan 16, 2026 02:383,40921,004,7112,000,0001,000,0002,355,200
11Jan 16, 2026 02:473,41417,370,8012,003,0001,001,0002,359,296
12Jan 16, 2026 02:203,41916,616,8321,003,0002,006,0002,351,104
13Jan 16, 2026 02:383,42424,532,8682,009,0001,004,0002,355,200
14Jan 16, 2026 02:203,43319,438,8202,014,0001,007,0002,355,200
15Jan 16, 2026 02:383,43622,160,4791,008,0002,016,0002,359,296
16Jan 16, 2026 02:453,44022,435,8262,018,0001,009,0002,355,200
17Jan 16, 2026 02:473,44122,355,4842,019,0001,009,0002,277,376
18Jan 16, 2026 02:473,44322,850,9352,020,0001,010,0002,355,200
19Jan 16, 2026 02:453,48822,541,5322,046,0001,023,0002,359,296
20Jan 16, 2026 02:213,55920,347,5111,044,0002,088,0002,359,296
21Jan 16, 2026 02:454,31121,681,9423,794,00002,531,328