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 7, 2026 05:27vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:23M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2409,258,7761,209,00002,117,632expected "6442459076 ", got "1 "stderr
2May 17, 2026 05:2408,455,7401,197,00002,117,632expected "6442459076 ", got "1 "stderr
3May 17, 2026 05:2408,987,9231,194,00002,117,632expected "6442459076 ", got "1 "stderr
4Feb 7, 2026 05:233,33823,212,246979,0001,958,0002,494,464
5Feb 7, 2026 05:233,33918,091,8921,469,0001,469,0002,494,464
6Feb 7, 2026 05:233,35519,407,655984,0001,968,0002,498,560
7Feb 7, 2026 05:233,37318,293,921989,0001,979,0002,494,464
8Feb 7, 2026 05:233,38320,472,175992,0001,985,0002,494,464
9Feb 7, 2026 05:243,39920,667,204997,0001,994,0002,535,424
10Feb 7, 2026 05:273,40223,746,020998,0001,996,0002,277,376
11Feb 7, 2026 05:243,40322,166,228998,0001,997,0002,277,376
12Feb 7, 2026 05:233,40619,021,040999,0001,998,0002,277,376
13Feb 7, 2026 05:243,41722,748,0121,002,0002,005,0002,502,656
14Feb 7, 2026 05:233,43820,954,5601,008,0002,017,0002,277,376
15Feb 7, 2026 05:273,45120,173,6101,012,0002,025,0002,498,560
16Feb 7, 2026 05:233,46420,835,9621,016,0002,032,0002,498,560
17Feb 7, 2026 05:273,55925,471,1991,044,0002,088,0002,498,560
18Feb 7, 2026 05:233,71921,772,5651,091,0002,182,0002,502,656