标签:java
class sushu
{
public static void main(String[] args)
{
System.out.println("Hello World!");
//int tp=0;
for (int x=2;x<=100 ;x++ )
{
int tp=0;
for (int y=2 ;y<=x-1 ;y++ )
{
if (x%y==0)
{
tp=1;
break ;
}
}
if (tp==0)
{
System.out.print(x+" ");
}
}
}
}标签:java
原文地址:http://9609214.blog.51cto.com/9599214/1576264