For this Question: Given a positive integer N, your task is to check if the given number prime or not.<b>User Task</b>
Since this is a functional problem, you don't have to worry about the input. You just have to complete the function <i>Ifprime()</i> which contains the given number N.

<b>Constraints:</b>
1 <= N <= 10<sup>9</sup>

<b>Note:</b> 
<i>But there is a catch here given user function has already code in it which may or may not be correct, now you need to figure out these and correct if it is required</i>Print "Yes" if the given number is prime else print "No"Sample Input:-
6

Sample Output:-
No

Sample Input:-
3

Sample Output:-
Yes, I have written this Solution Code: static void Ifprime(int N)
	{
if(N==1){
System.out.print("No");
return;
}
	   boolean prime = true;
	   for(int i=2; i*i<=N ;i++){
	       if(N%i==0){prime=false;break;}
	   }
	   if(prime==true){
	       System.out.print("Yes");
	   }
	   else{
	       
	       System.out.print("No");
	   }
	   
	}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?