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 listJan 17, 2026 02:45zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:27M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:27010,839,2051,137,00002,113,536expected "6442459076 ", got "2305422625 "
2May 17, 2026 05:27010,219,3891,120,00002,113,536expected "6442459076 ", got "2305422625 "
3May 17, 2026 05:27011,339,9491,139,00002,113,536expected "6442459076 ", got "2305422625 "
4Jan 17, 2026 02:453,36616,040,2941,975,000987,0002,355,200
5Jan 17, 2026 02:453,36619,892,6581,975,000987,0002,351,104
6Jan 17, 2026 02:453,37816,680,7461,982,000991,0002,363,392
7Jan 17, 2026 02:453,38220,472,9431,984,000992,0002,277,376
8Jan 17, 2026 02:453,39718,339,1871,993,000996,0002,359,296
9Jan 17, 2026 02:453,41419,486,4842,003,0001,001,0002,359,296
10Jan 17, 2026 02:453,41614,939,9182,004,0001,002,0002,531,328
11Jan 17, 2026 02:453,43317,936,0762,014,0001,007,0002,359,296
12Jan 17, 2026 02:453,51819,244,2132,064,0001,032,0002,367,488