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 6, 2026 04:32zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:43M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:4308,536,8321,017,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:4309,946,125959,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:4309,000,3231,011,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 6, 2026 04:333,32719,121,9681,952,000976,0002,383,872
5Feb 6, 2026 04:333,34524,757,3981,963,000981,0002,273,280
6Feb 6, 2026 04:333,35516,824,4361,968,000984,0002,387,968
7Feb 6, 2026 04:323,36623,588,2741,975,000987,0002,387,968
8Feb 6, 2026 04:333,41023,217,7032,001,0001,000,0002,277,376
9Feb 6, 2026 04:333,42315,951,2752,008,0001,004,0002,387,968
10Feb 6, 2026 04:323,44118,384,5542,019,0001,009,0002,375,680
11Feb 6, 2026 04:333,44318,845,6192,020,0001,010,0002,383,872
12Feb 6, 2026 04:323,48221,687,4822,043,0001,021,0002,392,064
13Feb 6, 2026 04:333,48423,995,5341,022,0002,044,0002,383,872
14Feb 6, 2026 04:333,53618,701,9602,075,0001,037,0002,387,968
15Feb 6, 2026 04:334,30818,024,3733,791,00002,371,584