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 21:12vahookvahookScore: 3,586Success
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 21:123,47516,598,1971,019,0002,039,0002,498,560
2Feb 4, 2026 21:123,47823,778,6891,020,0002,041,0002,498,560
3Feb 4, 2026 21:113,48421,717,4381,022,0002,044,0002,486,272
4Feb 4, 2026 21:123,48515,037,1631,022,0002,045,0002,494,464
5Feb 4, 2026 21:113,48820,535,6961,023,0002,046,0002,494,464
6Feb 4, 2026 21:113,48824,054,4261,023,0002,046,0002,281,472
7Feb 4, 2026 21:123,49123,863,4321,024,0002,048,0002,498,560
8Feb 4, 2026 21:113,49420,441,5881,025,0002,050,0002,490,368
9Feb 4, 2026 21:113,49818,547,3301,026,0002,052,0002,277,376
10Feb 4, 2026 21:113,58618,975,4601,052,0002,104,0002,494,464
11Feb 4, 2026 21:123,58617,694,2401,052,0002,104,0002,535,424
12Feb 4, 2026 21:123,58619,372,1721,052,0002,104,0002,502,656
13Feb 4, 2026 21:113,58820,598,2631,052,0002,105,0002,486,272
14Feb 4, 2026 21:123,59017,576,4081,053,0002,106,0002,535,424
15Feb 4, 2026 21:123,59021,487,3461,053,0002,106,0002,498,560
16Feb 4, 2026 21:113,59819,430,1391,055,0002,111,0002,490,368
17Feb 4, 2026 21:123,60320,113,3441,057,0002,114,0002,277,376
18Feb 4, 2026 21:113,61419,214,2411,060,0002,120,0002,498,560