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:38zielajzielajError
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:08010,655,1891,136,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:0809,639,9381,229,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:0808,375,3441,138,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 14:393,39520,790,1871,992,000996,0002,539,520
5Jan 10, 2025 14:393,39718,744,4141,993,000996,0002,523,136
6Jan 10, 2025 14:393,42316,840,3782,008,0001,004,0002,535,424
7Jan 10, 2025 14:393,43021,877,2861,006,0002,012,0002,523,136
8Jan 10, 2025 14:393,43621,144,4782,016,0001,008,0002,523,136
9Jan 10, 2025 14:393,48116,013,0162,042,0001,021,0002,519,040
10Jan 10, 2025 14:393,48220,691,2452,043,0001,021,0002,510,848
11Jan 10, 2025 14:393,48518,264,5022,045,0001,022,0002,510,848
12Jan 10, 2025 14:383,52316,551,2312,067,0001,033,0002,527,232
13Jan 10, 2025 14:383,57719,333,2072,099,0001,049,0002,519,040
14Jan 10, 2025 14:393,59424,926,7582,109,0001,054,0002,519,040
15Jan 10, 2025 14:384,56018,502,1033,010,0001,003,0002,277,376