// explain me the flow control in the loops
// I need a description
public class Prime1 {
public static void main(String args[] ){
int x, y;
// c = 0;
for( x = 1; x < 100; x++ )
{
if( x % 2 != 0 || x == 2 )
{
for( y = 2; y <= x / 2; y++ )
{
if( x % y == 0 )
{
break;
// when a number is divisible by 2 leaving a remainder 0 then the loop has to break;
}
}
if( y > x / 2 )
{
System.out.println( x );
//c++;
}
} // end of forloop 1 st
} // end of for loop 2 nd
//System.out.println( "\nTotal: " + c );
} // end of main method
} // end of class