• + 0 comments

    yes, that's what I do to avoid checking

    sum += n == divisor ? 0 : divisor;
    

    inside the loop.