Checks if it is prime
this system checks for primes by dividing by each integer below the square root of the number and checking if it gets a integer.