This version of Euclid's proof does not look like the one on Wikipedia, which is not a proof by contradiction. The article[0] mentions that:
"Euclid is often erroneously reported to have proved this result by contradiction, beginning with the assumption that the finite set initially considered contains all prime numbers, or that it contains precisely the n smallest primes, rather than any arbitrary finite set of primes."
[/nitpicking]
[0]: https://en.wikipedia.org/wiki/Euclid's_theorem#Euclid.27s_pr...