//PROGRAM TO FIND NUMBER OF PRIME NUMBER
class NumOfPrime
{
public static void main(String a[])
{
int n=500;
for(int j=2;j<=500;j++)
{
int f=0;
for(int i=2;i<=j/2;i++)
{
if(j%i==0)
{
f=1;
break;
}
}
if(f==0)System.out.println(j+” is a prime number”);
}
}
}