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 29, 2026 11:20Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:41M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:41012,496,7652,388,00002,117,632expected "6442459076 ", got "14623443812 "
2May 17, 2026 07:41013,235,6882,449,00002,117,632expected "6442459076 ", got "14623443812 "
3May 17, 2026 07:41012,200,4102,466,00002,117,632expected "6442459076 ", got "14623443812 "
4Apr 29, 2026 11:2110,19330,399,7555,980,0002,990,0002,371,584
5Apr 29, 2026 11:2110,20930,741,0306,988,0001,996,0002,367,488
6Apr 29, 2026 11:2110,23923,303,5177,009,0002,002,0002,465,792
7Apr 29, 2026 11:2110,24229,339,0597,010,0002,003,0002,363,392
8Apr 29, 2026 11:2110,37827,357,8416,089,0003,044,0002,363,392
9Apr 29, 2026 11:2110,38626,502,0317,109,0002,031,0002,375,680
10Apr 29, 2026 11:2110,40923,265,9117,125,0002,035,0002,371,584
11Apr 29, 2026 11:2110,41127,664,1767,126,0002,036,0002,457,600
12Apr 29, 2026 11:2110,42932,102,8227,139,0002,039,0002,371,584