Show that if $n$ is an integer, then every prime factor of $4n^2+1$ is congruent to $1 \pmod 4$. (Hint: if $p\mid 4n^2+1$), then what can you say about $(-1\mid p)$?
Approach:
I went over all the cases for n and concluded that $4n^2+1 \equiv 1\pmod 4$. We know that $4n^2+1$ can be represented as the product of prime numbers, so let $4n^2+1=q_1\cdots q_\ell$. This implies that $q_i \mid 4n^2+1$
b) Show that there are infinitely many primes congruent to 1(mod 4)
Approach
The common way to do this is by contradiction. Assume there are finitely many primes congruent to 1 mod 4. Call them $p_1,....,p_k$. Now let's build a number n congruent to 1 mod 4 with these primes. n=$4p_1*....*p_{k}+1 \equiv 1(mod\text{ } 4)$. By definition we can represent n as a product of primes. Let $n=q_1,...,q_l$. If $q_j=p_j$ then $q_j | 4p_1*...*p_k$ and $q_j | 1$ which can't be possible, so contradiction.
I am just wondering if there is a way to do the latter by using what was just done.