Though you've accepted an answer a day prior, it's worth strong emphasis that problems like this can be solved more simply (and more generally) using basic ideas about permutation cycles (if these are unfamiliar then see the alternative direct proof in a Remark below). Bringing to the fore the innate $\rm\color{#0a0}{periodic\, (cycle)}$ structure of the sequence $\!\bmod 5\,$ yields the very simple proof below.
Proof $\, $ Your sequence $\:\!c_n$ is generated by iteratively applying $\:\!f(x) = ax\:\!\!+\!b\,$ starting at $\,\color{}{c_0 = 5},\,$ i.e. $\,c_n = f^n(c_0).\,$ Viewed $\!\bmod 5\:\!$ note $f\,$ is invertible: $\,f^{-1}(x) \equiv (x\!-\!b)/a,\,$ by $\,a\not\equiv 0,\,$ so $f\,$ is a $\rm\color{#0a0}{permutation}$, and all $\:\!c_k\:\!$ lie in the $\:\!\rm\color{#0a0}{orbit\, ({\it cycle})}$ $f^k(\color{}{c_0})$ of length at most $\:\!\color{#c00}5 = |\Bbb Z_5|.\,$ So the initial value $\,c_0\equiv 0\pmod{\!5}\,$ repeats as $\,c_k\equiv 0\,$ for $\,0< k\le \color{#c00}5,\,$ so $\,5\mid c_k,\,$ so $\,c_k\,$ is composite (by $c_k$ is increasing so $\,k>0\Rightarrow c_k> c_0\!=\!5).\,$ Thus there are at most $\,\color{#c00}5\,$ initial primes in $\,c_k.\ \ \small\bf QED$
Remark $ $ If permutation cycles are unknown then we can directly prove the needed $\rm\color{#0a0}{periodicity}$.
Lemma $ $ If $f$ is an invertible map on $\Bbb Z_n = \Bbb Z \bmod n$ then $f^k(a)\equiv a\pmod{\! n}\,$ for some $\,k\le n$.
Proof $\, $ Pigeonhole $\Rightarrow$ among the $\,n\!+\!1\,$ values $\,a,f(a),f^2(a),\cdots, f^n(a)\,$ two are congruent, so for some $\,0\le i< j\le n\!:$ $\,f^j(a)\equiv f^i(a)\,$ so $f^{j-i}(a)\equiv a\,$ by: $ $ ($i$ times) apply $f^{-1}$ (to cancel $f^i)$.
Notice this approach does not require solving the recurrence (in closed form). Rather, we only need to prove that the function $f\:\!$ generating the recurrence is invertible. Then we may apply a fundamental fact - that the cycle graph of an invertible map on a finite set consists of purely periodic cycles, i.e. shape oh (o) vs. rho ($\rho$), i.e. no preperiod part as in the initial tail of the rho. This basic result is often overlooked, leading to unnecessarily complex proofs - which essentially amount to reinventing the wheel (cycle). See here for further discussion and examples, including some nonlinear recurrences.