Let $D(n)$ be the $n$-th positive integer that has the sum of its digits a prime. For example, $D(61) = 157$ and $D(10^8) = 403539364$.
Find $D(10^{16})$.