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 5, 2026 02:24vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:02M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0309,970,0231,137,00002,113,536expected "6442459076 ", got "8136 "
2May 17, 2026 07:0309,094,3921,193,00002,113,536expected "6442459076 ", got "8136 "
3May 17, 2026 07:03011,162,1501,196,00002,113,536expected "6442459076 ", got "8136 "
4Feb 5, 2026 02:243,45319,309,5811,013,0002,026,0002,498,560
5Feb 5, 2026 15:053,46117,321,3881,015,0002,031,0002,490,368
6Feb 5, 2026 02:243,46417,297,4891,016,0002,032,0002,490,368
7Feb 5, 2026 02:243,46418,321,2121,016,0002,032,0002,490,368
8Feb 5, 2026 02:243,46721,853,5021,017,0002,034,0002,490,368
9Feb 5, 2026 02:243,46821,245,4431,017,0002,035,0002,490,368
10Feb 5, 2026 02:243,47419,328,0911,019,0002,038,0002,535,424
11Feb 5, 2026 02:243,47520,342,8411,019,0002,039,0002,494,464
12Feb 5, 2026 02:243,47822,848,6571,020,0002,041,0002,277,376
13Feb 5, 2026 15:053,48121,476,5321,021,0002,042,0002,281,472
14Feb 5, 2026 02:243,49220,616,7241,024,0002,049,0002,494,464
15Feb 5, 2026 02:243,49420,914,8041,025,0002,050,0002,498,560
16Feb 5, 2026 02:243,50919,790,6291,029,0002,059,0002,281,472
17Feb 5, 2026 15:053,53018,229,2971,035,0002,071,0002,535,424
18Feb 5, 2026 02:243,53618,638,3291,037,0002,075,0002,490,368