implemented algorithm to determine a given number is prime or not