标签:
public class ZhiShu
{
public static void main(String[] args)
{
for (int i = 2; i < 100; i++)
{
for (int j = 2; j <=i; j++)
{
if(i%j==0&&i!=j)
{break;}
if(i%j==0&&i==j)
System.out.println(i);
}
}
}
}
标签:
原文地址:http://www.cnblogs.com/wflc/p/5967263.html