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 28, 2026 12:04Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 13:21M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 13:38011,513,8292,450,00002,117,632expected "6442459076 ", got "11794192309 "
2May 17, 2026 13:38012,743,7812,404,00002,117,632expected "6442459076 ", got "11794192309 "
3May 17, 2026 13:38011,979,7202,430,00002,117,632expected "6442459076 ", got "11794192309 "
4Apr 28, 2026 12:0510,50021,572,7978,214,0001,026,0002,359,296
5Apr 28, 2026 12:0510,54527,414,1038,249,0001,031,0002,355,200
6Apr 28, 2026 12:0510,56123,873,9948,262,0001,032,0002,363,392
7Apr 28, 2026 12:0510,57625,843,0238,273,0001,034,0002,428,928
8Apr 28, 2026 12:0510,65330,277,4208,334,0001,041,0002,359,296
9Apr 28, 2026 12:0510,67330,595,7598,350,0001,043,0002,351,104
10Apr 28, 2026 12:0510,69329,521,2048,365,0001,045,0002,363,392
11Apr 28, 2026 12:0510,69425,858,7578,366,0001,045,0002,326,528
12Apr 28, 2026 12:0510,71130,977,7658,379,0001,047,0002,363,392