When finding the factors of 841, what is the largest

factor you would have to test? What theorem supports
this?

I do not know theorem.

sqrt 841 = 29
There is no need to check bigger than the square root obviously.
It turns out the square root, 29 is a factor
so
29*29