I am currently working on primes which can be expressed in form of a polynomial. For eg,
Find all primes which can be expressed in form $n^4-52n^2+595$
It is very essential to tell whether a polynomial can be factored or not. The polynomial above is very easy to factor but for some polynomials, it's extremely hard to tell.
Is there any way to prove whether a polynomial can be factored or not?
As you mention, if the polynomial can be factored then it has only a finite number of prime values. Bunyakovski's conjecture is that otherwise, subject to some additional conditions, there are an infinite number of prime values. Although this is widely suspected to be true, there is no polynomial of degree greater than $1$ with integer coefficients that is known to give an infinite number of primes.