For a quick way to see whether a number is prime, check whether the number is divisible by prime numbers up to the square root of the number (by using divisibility rules).
As an example, say the number you're trying to crack is 461. You need to check all primes up to 19.
Try 2 (first prime): no, not even.
3: no, sum of the numbers not divisible by 3.
5: no, doesn't end with 0 or 5.
7: alternating + or - signs don't end up in number divisible by 7.
11, 13, 17, and 19: easy and don't work either.
So the number is prime. It is a generalization that can be applied to the problem in less than 2 minutes. Get away as much as you can from trial and error - it wastes time and consumes you.
You should also know why we aren't trying numbers like 4, 6, 8...and how we get to the 19 prime limit figure (in this example).