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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:38M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:38010,118,1801,026,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:38011,194,0691,027,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:3809,244,2701,031,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 17:143,34417,244,5851,962,000981,0002,535,424
5Feb 7, 2026 17:153,34924,857,9982,947,00002,347,008
6Feb 7, 2026 17:143,40918,399,9072,000,0001,000,0002,347,008
7Feb 7, 2026 17:153,41617,091,6981,002,0002,004,0002,277,376
8Feb 7, 2026 17:143,48216,765,5652,043,0001,021,0002,351,104
9Feb 7, 2026 17:154,22817,143,5113,721,00002,347,008