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 listApr 30, 2026 09:02olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 12:56M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 12:58013,566,0354,675,00002,117,632expected "6442459076 ", got "2147490262 "
2May 17, 2026 12:58011,800,4894,666,00002,117,632expected "6442459076 ", got "2147490262 "
3May 17, 2026 12:58011,799,2104,651,00002,117,632expected "6442459076 ", got "2147490262 "
4Apr 30, 2026 09:0311,78816,961,4349,337,0001,037,0002,555,904
5Apr 30, 2026 09:0311,81916,976,5949,361,0001,040,0002,334,720
6Apr 30, 2026 09:0311,88017,033,7449,410,0001,045,0002,560,000
7Apr 30, 2026 09:0311,88817,243,1049,416,0001,046,0002,555,904
8Apr 30, 2026 09:0311,98617,190,5389,494,0001,054,0002,326,528
9Apr 30, 2026 09:0312,23417,406,5679,690,0001,076,0002,502,656
10Apr 30, 2026 09:0312,28117,261,8988,647,0002,161,0002,330,624
11Apr 30, 2026 09:0312,44617,447,8308,962,0001,991,0002,535,424
12Apr 30, 2026 09:0312,76817,016,33410,215,0001,021,0002,334,720