Primes below $17$ never divide $m^2-m+17$: it is odd because $m(m-1)$ is even, and for the odd primes $3,\dots,13$ its discriminant $-67$ is a quadratic nonresidue, so we need four prime factors that are at least $17$.
Since $17\mid m^2-m+17$ iff $17\mid m(m-1)$, checking such $m$ in order finds the first success at $m=306$, where $306^2-306+17=93347=17^3\cdot19$.