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 00:30vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:15M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:15010,264,0631,200,00002,113,536expected "6442459076 ", got "8136 "
2May 17, 2026 07:1508,516,7041,182,00002,113,536expected "6442459076 ", got "8136 "
3May 17, 2026 07:1509,183,9661,277,00002,113,536expected "6442459076 ", got "8136 "
4Feb 5, 2026 00:303,45816,927,3461,014,0002,029,0002,494,464
5Feb 5, 2026 00:303,46119,865,2551,015,0002,031,0002,281,472
6Feb 5, 2026 00:303,46516,394,9831,016,0002,033,0002,498,560
7Feb 5, 2026 00:303,46816,401,7921,017,0002,035,0002,494,464
8Feb 5, 2026 00:303,47224,299,5171,018,0002,037,0002,482,176
9Feb 5, 2026 00:303,48823,726,7761,023,0002,046,0002,490,368
10Feb 5, 2026 00:303,49216,850,7291,024,0002,049,0002,277,376
11Feb 5, 2026 00:303,49418,515,2241,025,0002,050,0002,498,560
12Feb 5, 2026 00:303,49520,831,7311,025,0002,051,0002,498,560
13Feb 5, 2026 00:303,51124,625,6031,030,0002,060,0002,494,464
14Feb 5, 2026 00:303,51521,345,0521,031,0002,062,0002,498,560
15Feb 5, 2026 00:303,52221,564,9001,033,0002,066,0002,502,656