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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:51M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:5108,540,5241,074,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:5109,704,7221,011,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:5108,307,9271,054,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 16, 2026 02:433,40218,946,1261,996,000998,0002,355,200
5Jan 16, 2026 02:433,40717,833,6161,999,000999,0002,359,296
6Jan 16, 2026 02:443,41418,801,2422,003,0001,001,0002,535,424
7Jan 16, 2026 02:443,42620,021,4862,010,0001,005,0002,359,296
8Jan 16, 2026 02:433,43822,814,8232,017,0001,008,0002,359,296
9Jan 16, 2026 02:473,45119,215,0392,025,0001,012,0002,363,392
10Jan 16, 2026 02:463,45317,833,5412,026,0001,013,0002,277,376
11Jan 16, 2026 02:473,46820,488,3772,035,0001,017,0002,355,200
12Jan 16, 2026 02:443,57719,983,5861,049,0002,099,0002,359,296
13Jan 16, 2026 02:473,74718,888,3043,297,00002,351,104
14Jan 16, 2026 02:464,22016,408,5113,714,00002,355,200
15Jan 16, 2026 02:464,32317,565,4553,804,00002,347,008