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 listFeb 7, 2026 05:28vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:24M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:24011,276,0821,195,00002,117,632expected "6442459076 ", got "1 "stderr
2May 17, 2026 05:2408,649,0171,258,00002,117,632expected "6442459076 ", got "1 "stderr
3May 17, 2026 05:24010,782,2951,192,00002,117,632expected "6442459076 ", got "1 "stderr
4Feb 7, 2026 05:283,35618,736,256984,0001,969,0002,498,560
5Feb 7, 2026 05:303,35820,595,089985,0001,970,0002,490,368
6Feb 7, 2026 05:303,38621,554,761993,0001,987,0002,498,560
7Feb 7, 2026 05:283,41020,700,0851,000,0002,001,0002,494,464
8Feb 7, 2026 05:303,43417,933,0931,007,0002,015,0002,535,424
9Feb 7, 2026 05:283,45119,191,5021,012,0002,025,0002,490,368