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 13:57zielajzielajError
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:35011,256,5561,039,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:3509,920,9981,041,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:3508,515,7681,050,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 16, 2026 13:563,34816,887,7321,964,000982,0002,273,280
5Jan 16, 2026 13:573,38918,445,5281,988,000994,0002,351,104
6Jan 16, 2026 13:573,39924,671,5951,994,000997,0002,535,424
7Jan 16, 2026 13:563,40620,979,4021,998,000999,0002,531,328
8Jan 16, 2026 13:573,40620,170,0881,998,000999,0002,359,296
9Jan 16, 2026 13:563,41621,985,5771,002,0002,004,0002,355,200
10Jan 16, 2026 13:573,42423,927,2232,009,0001,004,0002,531,328
11Jan 16, 2026 13:573,48420,392,9162,044,0001,022,0002,359,296
12Jan 16, 2026 13:573,48519,022,6952,045,0001,022,0002,355,200