We can Optimize that prime number detection algorithm using following proof:

A given number $x \in \mathbb{N}, x \geq 2$ is not a prime number, meaning there are 2 factors $a, b \in \mathbb{N}\setminus \{1\}$ to write: $x = a\cdot b$.
Now we make the assumption: $a^2 \leq x \lor b^2 \leq x$.
Negating that assumption with De Morgan's laws would mean: $\overline{a^2 \leq x \lor b^2 \leq x} = a^2 > x \land b^2 > x$
But that would mean $a^2\cdot b^2 > x^2$. That is a contradiction(⚡) to $x = a\cdot b$.
That means our original assumption is correct.
That means for one of the factors $a, b\in \mathbb{N} \setminus \{1\}$ of x: $a \leq \sqrt{x} \lor b \leq \sqrt{x}$
That can be used to speed up our algorithm to detect wether a given number $x$ is $\in \mathbb{P}$( a prime number).

Disprove Statement: $\forall n\in\mathbb{N}:\,p_n=n^2-n+41$ is prime