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 24, 2026 21:23zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:05M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0608,755,3401,155,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:0608,435,5821,246,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:06010,585,8831,151,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 24, 2026 21:243,46020,874,2172,030,0001,015,0002,277,376
5Jan 24, 2026 21:233,46415,798,5382,032,0001,016,0002,359,296
6Jan 24, 2026 21:243,46819,195,3342,035,0001,017,0002,359,296
7Jan 24, 2026 21:233,47220,412,2312,037,0001,018,0002,359,296
8Jan 24, 2026 21:243,50921,258,5891,029,0002,059,0002,355,200
9Jan 24, 2026 21:233,60118,761,6442,113,0001,056,0002,359,296