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 16:44vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:16M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:17011,486,1941,207,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 07:1709,651,1121,188,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 07:1709,127,8441,213,00002,117,632expected "6442459076 ", got " "stderr
4Feb 5, 2026 16:423,45319,962,5171,013,0002,026,0002,277,376
5Feb 5, 2026 16:423,46426,817,7361,016,0002,032,0002,490,368
6Feb 5, 2026 16:443,46722,889,4351,017,0002,034,0002,281,472
7Feb 5, 2026 16:423,46717,037,9821,017,0002,034,0002,494,464
8Feb 5, 2026 16:433,48826,684,6501,023,0002,046,0002,494,464
9Feb 5, 2026 16:423,48916,417,7791,023,0002,047,0002,490,368
10Feb 5, 2026 16:423,49417,176,9941,025,0002,050,0002,494,464
11Feb 5, 2026 16:423,49423,969,6551,025,0002,050,0002,281,472
12Feb 5, 2026 16:433,49820,577,7821,026,0002,052,0002,494,464
13Feb 5, 2026 16:423,50623,246,3921,028,0002,057,0002,277,376
14Feb 5, 2026 16:433,51121,272,4701,030,0002,060,0002,494,464
15Feb 5, 2026 16:443,51318,063,8461,030,0002,061,0002,498,560
16Feb 5, 2026 16:423,51819,151,9231,032,0002,064,0002,498,560
17Feb 5, 2026 16:443,52518,816,0661,034,0002,068,0002,498,560
18Feb 5, 2026 16:423,54922,149,0271,041,0002,082,0002,498,560