package cls;
public class main34 {
public static void main(String[] args) {
for(int i = 2; i <= 100; i++)
{
for(int j = 2; j <= i; j++)
{
if(i % j == 0)
{
break;
}
else
{
System.out.println(i + " ");
}
}
}
}
}
What am I doing wrong here ?