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 listMay 5, 2026 19:55olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:37M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:37012,120,5294,396,00002,121,728expected "6442459076 ", got "2147491785 "stderr
2May 17, 2026 08:37012,495,4734,437,00002,121,728expected "6442459076 ", got "2147491785 "stderr
3May 17, 2026 08:37012,853,1354,414,00002,121,728expected "6442459076 ", got "2147491785 "stderr
4May 5, 2026 19:5811,59326,211,90310,202,00002,543,616stderr
5May 5, 2026 19:5811,60924,329,52610,216,00002,547,712stderr
6May 5, 2026 19:5811,71525,716,61110,310,00002,555,904stderr
7May 5, 2026 19:5811,71827,298,62710,312,00002,555,904stderr
8May 5, 2026 19:5811,73124,085,10410,324,00002,535,424stderr
9May 5, 2026 19:5811,73527,426,4429,274,0001,053,0002,547,712stderr
10May 5, 2026 19:5811,74223,023,6399,281,0001,052,0002,547,712stderr
11May 5, 2026 19:5811,74525,466,7409,281,0001,055,0002,547,712stderr
12May 5, 2026 19:5811,78127,588,3799,304,0001,064,0002,547,712stderr