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 00:55zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:59M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:59010,241,4441,160,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:5908,487,2621,161,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:5909,782,0981,144,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 00:553,43820,837,5962,017,0001,008,0002,510,848
5Jan 10, 2025 00:553,44421,044,1511,010,0002,021,0002,535,424
6Jan 10, 2025 00:553,44718,041,1942,022,0001,011,0002,510,848
7Jan 10, 2025 00:553,44814,869,5232,023,0001,011,0002,519,040
8Jan 10, 2025 00:553,46525,640,8372,033,0001,016,0002,510,848
9Jan 10, 2025 00:553,46821,912,1702,035,0001,017,0002,523,136
10Jan 10, 2025 00:553,48824,341,5672,046,0001,023,0002,510,848
11Jan 10, 2025 00:554,15520,470,4363,656,00002,519,040
12Jan 10, 2025 00:554,30815,719,4243,791,00002,510,848