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 4, 2026 18:37vahookvahookScore: 3,580Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 18:343,46022,799,5771,015,0002,030,0002,490,368
2Feb 4, 2026 18:343,46718,983,5761,017,0002,034,0002,498,560
3Feb 4, 2026 18:353,48821,096,9911,023,0002,046,0002,502,656
4Feb 4, 2026 18:343,55220,824,6901,042,0002,084,0002,490,368
5Feb 4, 2026 18:373,55317,034,7131,042,0002,085,0002,494,464
6Feb 4, 2026 18:373,55723,040,2681,043,0002,087,0002,535,424
7Feb 4, 2026 18:343,57320,719,3861,048,0002,096,0002,490,368
8Feb 4, 2026 18:353,57422,086,2631,048,0002,097,0002,498,560
9Feb 4, 2026 18:343,57722,843,8211,049,0002,099,0002,277,376
10Feb 4, 2026 18:343,57720,005,8501,049,0002,099,0002,535,424
11Feb 4, 2026 18:343,58021,878,5901,050,0002,100,0002,498,560
12Feb 4, 2026 18:373,58116,048,6521,050,0002,101,0002,498,560
13Feb 4, 2026 18:343,58321,730,7261,051,0002,102,0002,494,464
14Feb 4, 2026 18:373,58429,822,3501,051,0002,103,0002,494,464
15Feb 4, 2026 18:343,58417,078,4011,051,0002,103,0002,535,424
16Feb 4, 2026 18:343,58622,749,1081,052,0002,104,0002,277,376
17Feb 4, 2026 18:343,59318,740,9521,054,0002,108,0002,494,464
18Feb 4, 2026 18:343,59420,247,2221,054,0002,109,0002,498,560
19Feb 4, 2026 18:353,59718,320,5031,055,0002,110,0002,277,376
20Feb 4, 2026 18:373,61816,382,3411,061,0002,123,0002,494,464
21Feb 4, 2026 18:373,64816,540,8061,070,0002,140,0002,498,560