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 listMar 25, 2025 18:26wainCGPwainCGPError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 13:21M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 13:47012,071,1742,933,00002,117,632expected "6442459076 ", got "4294975429 "
2May 17, 2026 13:47012,293,2123,029,00002,117,632expected "6442459076 ", got "4294975429 "
3May 17, 2026 13:47024,022,1283,082,00002,117,632expected "6442459076 ", got "4294975429 "
4Mar 25, 2025 18:2616,66431,345,26614,664,00002,531,328
5Mar 25, 2025 18:2616,68031,851,26914,678,00002,428,928
6Mar 25, 2025 18:2616,69836,823,79813,645,0001,049,0002,433,024
7Mar 25, 2025 18:2616,72340,007,67614,716,00002,531,328
8Mar 25, 2025 18:2616,73941,685,13014,730,00002,531,328
9Mar 25, 2025 18:2616,76033,028,31414,749,00002,269,184
10Mar 25, 2025 18:2616,80737,206,28414,790,00002,531,328
11Mar 25, 2025 18:2616,84546,406,94314,824,00002,269,184
12Mar 25, 2025 18:2619,078,85916,819,807,99016,787,397,0001,999,0002,269,184