I would like to know if my approach is valid. I want to show that there are infinitely many primes of the form $4m+1$.
Assume the contrary, and denote each of these primes by $p_{i}$ with $i \in \{1, 2, \ldots, k\}$ for some $k$. Let $P$ be the product of all of them and note that $P \equiv 1\mod 4$. Let $Q$ be some product of primes only of the form $4m+3$. Then $P+Q$ cannot have prime divisor of the form $4m+1$, else it is some $p_{i}$ making $Q = P-mp_{i}$ divisible by $p_{i}$. Then $P+Q$ is a product of primes only of the form $4m+3$. Hence, $P+Q$ is either $1$ or $3$ modulo $4$ (since this number is congruent to $3^{r} \equiv (-1)^{r} \mod 4$, with $r$ being the number of prime factors). However, $P$ is $1$ modulo $4$ and $Q$ is either $1$ or $-1$ modulo $4$, making the sum $P+Q$ either $0$ or $2$ modulo $4$. Contradiction.
I believe this is valid, but wanted a second opinion. Looking this problem up online, there seems to be a common "trick" to define a number $N = 4P^{2}+1$, where $P$ is defined as above. I understand that method, but want to know if the one above works as well. Thank you.