Let the sequence $\{a_n\}_{n=0}^\infty$ be defined by $a_n=|n(n+1)-19|$. Show that for $n\neq 4$, if $a_n$ is relatively prime to $a_k$ for all $k<n$, then $a_n$ is prime.
The first few terms are $19, 17,13,7,1,11,23,37,53,71,91$, where $a_{10}=91$ is the first non-prime term (other than $a_4=1$), and indeed it is not relatively prime to $a_2=13$ and $a_3=7$.