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 8, 2026 01:15zielajzielajError
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:1608,298,7451,030,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 07:16011,777,1151,121,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 07:1608,300,4401,108,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 8, 2026 01:163,35621,425,9861,969,000984,0002,351,104
5Feb 8, 2026 01:163,38919,811,1081,988,000994,0002,347,008
6Feb 8, 2026 01:153,40020,319,089997,0001,995,0002,347,008
7Feb 8, 2026 01:163,44319,310,8681,010,0002,020,0002,351,104
8Feb 8, 2026 01:153,50221,441,7761,027,0002,055,0002,342,912
9Feb 8, 2026 01:163,50220,716,0702,055,0001,027,0002,347,008
10Feb 8, 2026 01:163,55019,351,4092,083,0001,041,0002,351,104
11Feb 8, 2026 01:163,69321,566,8393,250,00002,347,008
12Feb 8, 2026 01:153,75816,632,7002,205,0001,102,0002,506,752