Let $d(m)$ denote the number of positive integer divisors of a positive integer $m$. If $r$ is the number of integers  $n \leqslant 2023$ for which $\sum_{i=1}^{n} d(i)$ is odd. , find the sum of digits of $r.$