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:23vahookvahookError
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:03010,081,4411,240,00002,113,536expected "6442459076 ", got "8136 "
2May 17, 2026 07:03011,532,3941,255,00002,113,536expected "6442459076 ", got "8136 "
3May 17, 2026 07:0309,020,4201,249,00002,113,536expected "6442459076 ", got "8136 "
4Feb 4, 2026 21:213,43818,715,5381,008,0002,017,0002,490,368
5Feb 4, 2026 21:203,45516,185,1601,013,0002,027,0002,281,472
6Feb 4, 2026 21:203,46719,315,2511,017,0002,034,0002,277,376
7Feb 4, 2026 21:203,46824,679,9821,017,0002,035,0002,281,472
8Feb 4, 2026 21:203,47021,284,6521,018,0002,036,0002,535,424
9Feb 4, 2026 21:203,47221,806,3511,018,0002,037,0002,502,656
10Feb 4, 2026 21:233,47221,867,8951,018,0002,037,0002,281,472
11Feb 4, 2026 21:213,47220,240,9421,018,0002,037,0002,498,560
12Feb 4, 2026 21:213,47520,841,3631,019,0002,039,0002,494,464
13Feb 4, 2026 21:203,47819,795,1671,020,0002,041,0002,535,424
14Feb 4, 2026 21:203,47822,531,0791,020,0002,041,0002,281,472
15Feb 4, 2026 21:203,48120,613,1021,021,0002,042,0002,490,368
16Feb 4, 2026 21:203,48517,481,7601,022,0002,045,0002,490,368
17Feb 4, 2026 21:213,48817,701,2471,023,0002,046,0002,277,376
18Feb 4, 2026 21:203,49821,240,0271,026,0002,052,0002,490,368
19Feb 4, 2026 21:203,52628,889,6781,034,0002,069,0002,498,560
20Feb 4, 2026 21:213,54319,246,9871,039,0002,079,0002,498,560
21Feb 4, 2026 21:233,54517,932,3331,040,0002,080,0002,506,752
22Feb 4, 2026 21:213,56419,109,3431,045,0002,091,0002,498,560
23Feb 4, 2026 21:203,56418,551,9931,045,0002,091,0002,498,560
24Feb 4, 2026 21:233,65924,049,3761,073,0002,147,0002,498,560