public class Mmm {
public static void main(String[] args) {
int c=0;
for(int i=1;i<1000;i+=2)
{
boolean b=true;
for(int j=2;j {
if(i%j==0)
{
b=false;
break;
}
}if(!b)
{
continue;
}
System.out.print(" "+i);
c++;
if(c==10)
{
System.out.println("\n");
}
}
}
}