From the proof that there are infinitely many primes:
Given all the primes $p_i$ known up to the $n$th prime, construct the number $q_n$ such that
$$ q_n = 1 + \prod^{n}_{i=1} p_i $$
Since there is no prime within the first $n$ primes that evenly divides $q_n$, either $q_n$ must be prime or there is another prime $p_k$ that evenly divides $q_n$. Hence, for all $n$, there is always another prime not included in the first $n$ primes.
I've checked the following values.
$q_1 = 2 + 1 = 3$, which is prime.
$q_2 = (2)(3) + 1 = 7$, which is prime.
$q_3 = (2)(3)(5) + 1 = 31$, which is prime.
$q_4 = (2)(3)(5)(7) + 1 = 211$, which is prime.
$q_5 = (2)(3)(5)(7)(11) + 1 = 2311$, which is prime.
$q_6 = (2)(3)(5)(7)(11)(13) + 1 = 30031 = (59)(509)$, which is not prime.
How would I proof without example that it is possible for this function to produce a non-prime value?
Thank you to Henning Makholm for providing the example $q_6$.
Attempt:
Assume that $q_n$ is non-prime. There is some prime $p_k > p_n$ and an other number $c$ that divide $q_n$. I must show that for $p_k$ to exist, there is a prime $p_i$ where $i < n$ that divides $c$ for this to be a proof by contradiction. It's not immediately apparent to me how to prove this.