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 listFeb 5, 2026 20:20vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:08M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0808,764,5421,191,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 07:0809,538,4541,201,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 07:0808,525,3271,272,00002,113,536expected "6442459076 ", got " "
4Feb 5, 2026 20:203,44722,340,6621,011,0002,022,0002,502,656
5Feb 5, 2026 20:203,45021,338,2111,012,0002,024,0002,498,560
6Feb 5, 2026 20:203,45825,339,5911,014,0002,029,0002,494,464
7Feb 5, 2026 20:203,47523,112,1271,019,0002,039,0002,494,464
8Feb 5, 2026 20:203,48521,449,9591,022,0002,045,0002,494,464
9Feb 5, 2026 20:203,48520,546,8791,022,0002,045,0002,498,560
10Feb 5, 2026 20:203,48815,052,6821,023,0002,046,0002,498,560
11Feb 5, 2026 20:203,48921,795,1461,023,0002,047,0002,494,464
12Feb 5, 2026 20:203,49118,626,8931,024,0002,048,0002,502,656