验证中...
Languages: Java
Categories: 编程语言基础
Latest update 2018-12-09 10:09
gistfile1.txt
Raw Copy
public class Test02 {
public static void main(String[] args) {
int i,j;
begin:for(i=2;i<100;i++) {
for(j=2;j<=Math.sqrt(i);j++) {
if(i%j==0)
continue begin;
}
System.out.println(i);
}
}
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search