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 7, 2026 03:09vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:24M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:24010,109,0151,190,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:24010,658,4681,195,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:24010,508,5881,191,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 03:103,35522,222,9341,476,0001,476,0002,498,560
5Feb 7, 2026 03:113,37620,257,669990,0001,981,0002,277,376
6Feb 7, 2026 03:103,38320,799,886992,0001,985,0002,277,376
7Feb 7, 2026 03:103,38324,509,168992,0001,985,0002,494,464
8Feb 7, 2026 03:093,38622,576,838993,0001,987,0002,498,560
9Feb 7, 2026 03:103,39320,285,102995,0001,991,0002,490,368
10Feb 7, 2026 03:103,39915,067,624997,0001,994,0002,498,560
11Feb 7, 2026 03:103,40618,351,093999,0001,998,0002,281,472
12Feb 7, 2026 03:103,41619,633,2201,002,0002,004,0002,277,376
13Feb 7, 2026 03:103,41621,952,0901,002,0002,004,0002,494,464
14Feb 7, 2026 03:113,41720,822,9381,002,0002,005,0002,494,464
15Feb 7, 2026 03:093,41920,483,6731,003,0002,006,0002,494,464
16Feb 7, 2026 03:103,42020,861,1461,003,0002,007,0002,277,376
17Feb 7, 2026 03:103,43121,175,6321,006,0002,013,0002,494,464
18Feb 7, 2026 03:113,43416,295,2491,007,0002,015,0002,494,464
19Feb 7, 2026 03:093,44716,846,5901,011,0002,022,0002,281,472
20Feb 7, 2026 03:103,46121,741,3121,015,0002,031,0002,486,272
21Feb 7, 2026 03:103,49126,659,9521,024,0002,048,0002,498,560