The most thorough way to test if a number such as 3841 is prime is to test its divisibility by all prime numbers between 1 and the sqrt(3841).
sqrt(3841) is about 62.
We don't need to test anything above 62 because any number above 62 would have to be multiplied by a number smaller than 62 to get to 3841, and we've already tested all the numbers smaller than 62.
Therefore, we test: 2, 3, 5, 7, 11...
We don't need to test 4, because checking 2 would have caught that. The same goes for 6 and 8. We don't need to test 9 because the 3 would have caught that, so on and so forth.
We keep testing prime numbers until we find a factor or we hit 62.
Therefore, we keep testing: 2, 3, 5, 7, 11, 13, 17, 19, 23
Ah ha! We found one: 23*167 = 3841
Performing the same test on 167, we learn that 167 is also prime. The prime factors of 3841 is therefore 23 and 167.
Unforunately, I do not know a quicker approach to solving this.