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 15, 2026 23:08zielajzielajError
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:5909,967,4191,110,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:59010,060,7941,126,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:5908,890,5021,112,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 15, 2026 23:083,39016,308,9431,989,000994,0002,355,200
5Jan 15, 2026 23:073,42423,243,0922,009,0001,004,0002,355,200
6Jan 15, 2026 23:073,42618,044,9222,010,0001,005,0002,347,008
7Jan 15, 2026 23:083,46519,286,2432,033,0001,016,0002,359,296
8Jan 15, 2026 23:073,52622,622,3302,069,0001,034,0002,535,424
9Jan 15, 2026 23:083,54018,860,4021,038,0002,077,0002,359,296