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 17, 2026 02:26zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:35M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:35010,115,6511,033,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:35010,886,2391,112,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:3509,446,4881,127,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 17, 2026 02:263,34820,636,9141,964,000982,0002,363,392
5Jan 17, 2026 02:263,38325,750,6361,985,000992,0002,363,392
6Jan 17, 2026 02:273,39520,597,9281,992,000996,0002,277,376
7Jan 17, 2026 02:273,39518,774,3171,992,000996,0002,363,392
8Jan 17, 2026 02:263,39918,704,4861,994,000997,0002,359,296
9Jan 17, 2026 02:263,40017,491,3971,995,000997,0002,355,200
10Jan 17, 2026 02:263,40624,524,5711,998,000999,0002,359,296
11Jan 17, 2026 02:263,41319,101,5062,002,0001,001,0002,359,296
12Jan 17, 2026 02:263,41420,432,1772,003,0001,001,0002,355,200
13Jan 17, 2026 02:273,44115,962,3042,019,0001,009,0002,359,296
14Jan 17, 2026 02:263,44418,854,4672,021,0001,010,0002,359,296
15Jan 17, 2026 02:263,48120,661,7142,042,0001,021,0002,363,392