45 is divisible by 5?
Actually, one can immediately see that 45 cannot be prime, because 5 is one of its divisors: indeed, a number ending with 0 or 5 has necessarily 5 among its divisors. The last digit of 45 is 5, so it is divisible by 5 and is therefore not prime.