Determines Primality of a number