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 6, 2026 01:22zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:40M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:40010,062,3461,200,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:40011,396,0731,225,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:4009,252,6231,216,00002,113,536expected "6442459076 ", got "2305422578 "
4Feb 6, 2026 01:223,40919,208,1992,000,0001,000,0002,359,296
5Feb 6, 2026 01:223,42321,679,9442,008,0001,004,0002,359,296
6Feb 6, 2026 01:223,48916,541,8642,047,0001,023,0002,277,376