Write a program to check whether the given number is prime or not, If number is prime, find the square root of the number else print given number is not a prime number.