Given the expression $n^4-20n^2+4$
You write
"I found out that this expression could be factorised into".. $$(n^2−4n−2)(n^2+4n−2).$$
Is this related to the question?"
YES!
If neither one nor the other of the factors you found evaluates to $1, 0, -1,$ under any integer value of $n$, you will have shown that the expression can be factored into two non-zero, non-unit factors, and hence is composite.
Suppose we first try to solve whether either factor might evaluate to zero given some integer n:
$(1)\;\;n^2-4n - 2 = 0$
$(2)\;\; n^2 + 4n - 2 = 0$
By using the quadratic equation, you'll find that there are no integer roots for either. So neither factor is zero.
Similarly, you can use the quadratic equation to test out whether either factor can equal $\pm 1$
$(3)\;\;n^2-4n-2 = 1 \iff n^2-4n -3 = 0$
$(4)\;\;n^2 - 4n-2 = -1 \iff n^2 - 4n -1 = 0$.
Similarly, we see there are no integer roots $n$ when solving for $n$
$(5)\;\; n^2+4n-3 = 0, \;\;\;(6)\;\;n^2 + 4n -1 = 0$
Now, if we use common definition of a composite number as being strictly a positive integer $k$ with at least three factors (or at least one factor other than $1$ and itself $(k\geq 2)$, then the statement is not true.
Counter example under this stricter definition:
When $n=3$, the expression evaluates to: $3^4-20\times 3^2+4 = 81-180 + 4 = -95$. This is not a composite number, strictly defined, because it is not a positive integer. However, since $-95 = (-1)(1)(5)(19)$, for the purposes of this assignment, we can see that $-95$ is a negative composite number.