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 01:08zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:06M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0709,462,5371,306,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:07010,222,5461,299,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:07010,416,5381,290,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 24, 2026 01:083,40617,493,9811,998,000999,0002,355,200
5Jan 24, 2026 01:083,47523,865,0802,039,0001,019,0002,355,200
6Jan 24, 2026 01:084,16420,246,1623,664,00002,531,328