Reducing number of iterations by half for checking if number is prime.

Details of changes:
	No need to check if a number is divisible by an even number