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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:23M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:23014,111,2932,485,00002,117,632expected "6442459076 ", got "5176077817 "
2May 17, 2026 07:23012,098,5652,519,00002,117,632expected "6442459076 ", got "5176077817 "
3May 17, 2026 07:23013,024,2832,497,00002,117,632expected "6442459076 ", got "5176077817 "
4Apr 28, 2026 14:0010,14826,440,6516,947,0001,984,0002,367,488
5Apr 28, 2026 14:0010,15723,384,6916,953,0001,986,0002,371,584
6Apr 28, 2026 14:0010,21426,866,1096,992,0001,997,0002,371,584
7Apr 28, 2026 14:0010,21427,906,9936,992,0001,997,0002,375,680
8Apr 28, 2026 14:0010,25525,566,6217,020,0002,005,0002,441,216
9Apr 28, 2026 14:0010,32025,392,7617,064,0002,018,0002,363,392
10Apr 28, 2026 14:0010,35325,074,1236,074,0003,037,0002,433,024
11Apr 28, 2026 14:0010,37122,904,5457,099,0002,028,0002,375,680
12Apr 28, 2026 14:0010,37230,079,2907,100,0002,028,0002,371,584