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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:42M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:43012,685,7872,306,00002,117,632expected "6442459076 ", got "11794192309 "
2May 17, 2026 08:43011,493,3702,295,00002,117,632expected "6442459076 ", got "11794192309 "
3May 17, 2026 08:43010,965,2642,379,00002,117,632expected "6442459076 ", got "11794192309 "
4Apr 28, 2026 11:5910,41928,368,6057,132,0002,037,0002,437,120
5Apr 28, 2026 11:5910,43630,769,1589,184,00002,371,584
6Apr 28, 2026 11:5910,47027,787,6918,191,0001,023,0002,371,584
7Apr 28, 2026 11:5910,49724,448,3818,212,0001,026,0002,326,528
8Apr 28, 2026 11:5910,50428,497,5838,217,0001,027,0002,367,488
9Apr 28, 2026 11:5910,50525,805,4958,218,0001,027,0002,326,528
10Apr 28, 2026 11:5910,52527,918,0897,204,0002,058,0002,367,488
11Apr 28, 2026 11:5910,53824,624,2678,244,0001,030,0002,371,584
12Apr 28, 2026 11:5910,61326,617,2918,303,0001,037,0002,363,392