package com.deng.com.deng.struct;
public class ti2 {
public static void main(String[] args) {
out:for (int i=101;i<=150;i++)
{
for (int j=2;j<i/2;j++)
{
if (i%j==0)
{
continue out;
}
}
System.out.print(i+" ");
}
}
}
101 103 107 109 113 127 131 137 139 149
Process finished with exit code 0