$a_{1} x+a_{2} x^{2}+\cdots+a_{100} x^{100}$, the number of terms with rational coefficients is ( ).
(A) 14
(B) 15
(C) 16
(D) 17
4. D

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.