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 10, 2025 14:22zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:42M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:42010,381,9651,143,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:4208,321,9791,215,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:4208,656,3411,127,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 14:223,38522,306,0721,986,000993,0002,277,376
5Jan 10, 2025 14:223,42722,676,8642,011,0001,005,0002,519,040
6Jan 10, 2025 14:223,43324,437,0892,014,0001,007,0002,523,136
7Jan 10, 2025 14:223,44022,575,7882,018,0001,009,0002,523,136
8Jan 10, 2025 14:223,44020,284,8932,018,0001,009,0002,510,848
9Jan 10, 2025 14:223,44420,147,1452,021,0001,010,0002,539,520
10Jan 10, 2025 14:223,57719,054,0971,049,0002,099,0002,510,848
11Jan 10, 2025 14:224,14023,386,2113,643,00002,519,040
12Jan 10, 2025 14:224,52522,139,7932,987,000995,0002,535,424