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 17:21vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:03M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0409,743,1241,277,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 07:04011,379,9211,219,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 07:0409,633,2001,202,00002,117,632expected "6442459076 ", got " "stderr
4Feb 5, 2026 17:213,44023,573,0431,009,0002,018,0002,502,656
5Feb 5, 2026 17:213,45117,959,8261,012,0002,025,0002,498,560
6Feb 5, 2026 17:213,46120,279,6351,015,0002,031,0002,535,424
7Feb 5, 2026 17:213,46124,530,6181,015,0002,031,0002,490,368
8Feb 5, 2026 17:213,46722,206,0601,017,0002,034,0002,486,272
9Feb 5, 2026 17:213,46817,675,6321,017,0002,035,0002,494,464
10Feb 5, 2026 17:223,46822,202,8741,017,0002,035,0002,281,472
11Feb 5, 2026 17:213,47221,665,9761,018,0002,037,0002,498,560
12Feb 5, 2026 17:223,47521,077,8141,019,0002,039,0002,277,376
13Feb 5, 2026 17:203,47823,244,3811,020,0002,041,0002,490,368
14Feb 5, 2026 17:223,48120,944,3461,021,0002,042,0002,498,560
15Feb 5, 2026 17:213,48419,159,6341,022,0002,044,0002,494,464
16Feb 5, 2026 17:203,49515,538,2331,025,0002,051,0002,494,464
17Feb 5, 2026 17:203,49820,245,1181,026,0002,052,0002,494,464
18Feb 5, 2026 17:213,50924,790,7351,029,0002,059,0002,486,272
19Feb 5, 2026 17:213,50919,066,2902,059,0001,029,0002,277,376
20Feb 5, 2026 17:213,51120,091,4491,030,0002,060,0002,494,464
21Feb 5, 2026 17:213,52616,160,4421,034,0002,069,0002,281,472