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 17:15zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:37M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:37010,425,8671,138,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:3708,295,0421,138,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:3709,493,3621,151,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 17:153,35815,095,8491,970,000985,0002,326,528
5Jan 10, 2025 17:153,35916,110,3121,971,000985,0002,326,528
6Jan 10, 2025 17:153,38222,691,4021,984,000992,0002,330,624
7Jan 10, 2025 17:153,38523,635,8501,986,000993,0002,326,528
8Jan 10, 2025 17:153,40719,605,0371,999,000999,0002,531,328
9Jan 10, 2025 17:153,40924,322,2922,000,0001,000,0002,334,720
10Jan 10, 2025 17:153,43323,793,3271,007,0002,014,0002,326,528
11Jan 10, 2025 17:153,44021,349,0652,018,0001,009,0002,326,528
12Jan 10, 2025 17:153,45323,096,8002,026,0001,013,0002,330,624