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:00Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 12:55M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 12:57014,158,7012,602,00002,117,632expected "6442459076 ", got "11794192037 "
2May 17, 2026 12:57011,280,4742,653,00002,117,632expected "6442459076 ", got "11794192037 "
3May 17, 2026 12:57013,600,6322,688,00002,117,632expected "6442459076 ", got "11794192037 "
4Apr 28, 2026 12:0010,32928,616,2565,050,0004,040,0002,392,064
5Apr 28, 2026 12:0010,41924,549,5787,132,0002,037,0002,494,464
6Apr 28, 2026 12:0010,43524,882,5668,163,0001,020,0002,392,064
7Apr 28, 2026 12:0010,54731,397,3278,251,0001,031,0002,396,160
8Apr 28, 2026 12:0010,56226,564,6388,263,0001,032,0002,400,256
9Apr 28, 2026 12:0010,57522,885,0748,272,0001,034,0002,396,160
10Apr 28, 2026 12:0010,62232,123,8568,310,0001,038,0002,400,256
11Apr 28, 2026 12:0010,67724,061,7578,352,0001,044,0002,396,160
12Apr 28, 2026 12:0010,69030,512,9076,586,0002,822,0002,404,352