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:36vahookvahookScore: 3,615Success
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:083,55924,202,2341,044,0002,088,0002,277,376
2Feb 4, 2026 18:083,56721,299,5791,046,0002,093,0002,277,376
3Feb 4, 2026 18:363,57619,650,6321,049,0002,098,0002,277,376
4Feb 4, 2026 18:363,58121,980,6411,050,0002,101,0002,277,376
5Feb 4, 2026 18:363,58317,118,1561,051,0002,102,0002,277,376
6Feb 4, 2026 18:093,58820,572,5371,052,0002,105,0002,498,560
7Feb 4, 2026 18:363,59020,641,3861,053,0002,106,0002,498,560
8Feb 4, 2026 18:353,59815,185,5021,055,0002,111,0002,498,560
9Feb 4, 2026 18:353,60318,502,5261,057,0002,114,0002,502,656
10Feb 4, 2026 18:093,60520,746,7511,057,0002,115,0002,277,376
11Feb 4, 2026 18:353,61514,560,6311,060,0002,121,0002,494,464
12Feb 4, 2026 18:363,62417,135,2581,063,0002,126,0002,498,560
13Feb 4, 2026 18:353,65221,781,6211,071,0002,143,0002,498,560
14Feb 4, 2026 18:083,65618,455,6801,072,0002,145,0002,498,560
15Feb 4, 2026 18:363,66619,332,7001,075,0002,151,0002,494,464
16Feb 4, 2026 18:363,67319,544,0851,077,0002,155,0002,490,368
17Feb 4, 2026 18:363,67822,568,7162,158,0001,079,0002,490,368
18Feb 4, 2026 18:363,68616,579,9262,163,0001,081,0002,535,424
19Feb 4, 2026 18:093,70215,793,4032,172,0001,086,0002,498,560
20Feb 4, 2026 18:353,77222,609,1822,213,0001,106,0002,465,792
21Feb 4, 2026 18:353,83221,775,7262,248,0001,124,0002,277,376