Any number that is not divisible by 2 and not divisible by 3 has the form 6k+1 or 6k+5, where 0≤k≤20. Therefore the sum is S=k=0∑20(6k+1)+k=0∑20(6k+5)=k=0∑20(12k+6)=12(1+2+3+⋯+20)+6⋅21=12⋅21⋅10+6⋅21=2646. The answer is (D).
Alternative Solution: The sum of all numbers smaller than 126 is 1+2+3+⋯+125=125⋅63. The sum of all even numbers smaller than 126 is 2+4+6+⋯+124=2(1+2+3+⋯+62)=62⋅63. The sum of all multiples of three smaller than 126 is 3+6+⋯+123=3(1+2+⋯+41)=3⋅41⋅21. The sum of all multiples of six smaller than 126 is 6+12+⋯+120=6(1+2+⋯+20)=6⋅21⋅10. Therefore, the sum is 125⋅63−62⋅63−3⋅41⋅21+6⋅21⋅10=2646.