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:09vahookvahookScore: 3,416Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 03:103,35522,222,9341,476,0001,476,0002,498,560
2Feb 7, 2026 03:113,37620,257,669990,0001,981,0002,277,376
3Feb 7, 2026 03:103,38320,799,886992,0001,985,0002,277,376
4Feb 7, 2026 03:103,38324,509,168992,0001,985,0002,494,464
5Feb 7, 2026 03:093,38622,576,838993,0001,987,0002,498,560
6Feb 7, 2026 03:103,39320,285,102995,0001,991,0002,490,368
7Feb 7, 2026 03:103,39915,067,624997,0001,994,0002,498,560
8Feb 7, 2026 03:103,40618,351,093999,0001,998,0002,281,472
9Feb 7, 2026 03:103,41619,633,2201,002,0002,004,0002,277,376
10Feb 7, 2026 03:103,41621,952,0901,002,0002,004,0002,494,464
11Feb 7, 2026 03:113,41720,822,9381,002,0002,005,0002,494,464
12Feb 7, 2026 03:093,41920,483,6731,003,0002,006,0002,494,464
13Feb 7, 2026 03:103,42020,861,1461,003,0002,007,0002,277,376
14Feb 7, 2026 03:103,43121,175,6321,006,0002,013,0002,494,464
15Feb 7, 2026 03:113,43416,295,2491,007,0002,015,0002,494,464
16Feb 7, 2026 03:093,44716,846,5901,011,0002,022,0002,281,472
17Feb 7, 2026 03:103,46121,741,3121,015,0002,031,0002,486,272
18Feb 7, 2026 03:103,49126,659,9521,024,0002,048,0002,498,560