public class testxunhuan2 {
    
public static void main(String[] args) {
        
for (int i=101;i<200;i+=2){
            
boolean f = true;
            
for (int j=2;j<i;j++){
                
if(i%j==0){
                    f 
= false;
                    
break;
                }
 
            }

                
if(!f){continue;}
                System.out.print(
" " +i);
        }
    
    }

}

运算结果:
 
101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199