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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:38M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:38011,119,5502,418,00002,117,632expected "6442459076 ", got "14623443812 "
2May 17, 2026 07:38013,031,0122,446,00002,117,632expected "6442459076 ", got "14623443812 "
3May 17, 2026 07:38013,567,8612,436,00002,117,632expected "6442459076 ", got "14623443812 "
4Apr 29, 2026 11:2810,22525,294,4226,999,0001,999,0002,437,120
5Apr 29, 2026 11:2810,24323,515,1407,011,0002,003,0002,359,296
6Apr 29, 2026 11:2810,27226,177,3956,027,0003,013,0002,363,392
7Apr 29, 2026 11:2810,29524,864,0247,047,0002,013,0002,379,776
8Apr 29, 2026 11:2810,33226,272,8397,073,0002,020,0002,367,488
9Apr 29, 2026 11:2810,36021,098,8077,091,0002,026,0002,433,024
10Apr 29, 2026 11:2810,36123,808,2906,079,0003,039,0002,326,528
11Apr 29, 2026 11:2810,40626,809,0857,123,0002,035,0002,371,584
12Apr 29, 2026 11:2810,41922,949,6366,113,0003,056,0002,326,528