UPDATE

上级 5b0ce43e
class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
for (int n = 2; n<201; n++)
{
int isPrime = 1;
for (int i = 2; i < n; i++)
{
if(n % i == 0)
{
isPrime = 0;
break;
}
if(isPrime == 1 )
{
System.out.print(n+" ");
}
else {
// System.out.println();
}
}
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册