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 6, 2026 01:15zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:03M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0309,192,8971,114,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:0309,502,8801,108,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:0308,478,2131,125,00002,113,536expected "6442459076 ", got "2305422578 "
4Feb 6, 2026 01:153,37824,548,6291,982,000991,0002,351,104
5Feb 6, 2026 01:153,40718,122,8321,999,000999,0002,355,200
6Feb 6, 2026 01:153,44419,924,1562,021,0001,010,0002,510,848
7Feb 6, 2026 01:153,46818,152,2862,035,0001,017,0002,355,200
8Feb 6, 2026 01:153,56617,216,1941,046,0002,092,0002,355,200
9Feb 6, 2026 01:154,13617,945,9753,640,00002,351,104