Problem 3: Fix to the prime function

Fixed a bug made after optimizing the divisors function, now will
correctly determine if a number is prime again