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 04:56vahookvahookScore: 3,741Success
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 04:283,68920,541,5152,164,0001,082,0002,502,656
2Feb 4, 2026 04:563,69218,550,6942,166,0001,083,0002,498,560
3Feb 4, 2026 04:283,70624,459,4162,174,0001,087,0002,498,560
4Feb 4, 2026 04:283,70618,530,3972,174,0001,087,0002,494,464
5Feb 4, 2026 04:563,70919,198,1662,176,0001,088,0002,490,368
6Feb 4, 2026 04:563,71322,627,2872,178,0001,089,0002,277,376
7Feb 4, 2026 04:563,71424,989,8292,179,0001,089,0002,502,656
8Feb 4, 2026 04:283,72316,394,1192,184,0001,092,0002,494,464
9Feb 4, 2026 04:283,73424,644,2022,191,0001,095,0002,498,560
10Feb 4, 2026 04:283,74118,406,5342,195,0001,097,0002,535,424
11Feb 4, 2026 04:283,74315,232,9652,196,0001,098,0002,494,464
12Feb 4, 2026 04:563,74415,687,9872,197,0001,098,0002,498,560
13Feb 4, 2026 04:563,75122,086,8372,201,0001,100,0002,490,368
14Feb 4, 2026 04:563,75523,086,1662,203,0001,101,0002,502,656
15Feb 4, 2026 04:563,75718,503,2692,204,0001,102,0002,494,464
16Feb 4, 2026 04:283,78517,256,7692,221,0001,110,0002,277,376
17Feb 4, 2026 04:563,79119,176,3182,224,0001,112,0002,277,376
18Feb 4, 2026 04:283,79817,212,7852,228,0001,114,0002,498,560