function to check wether a number is a prime number or not. returns TRUE if number given is a prime number and FALSE if not.
click here to select all the code