package com.alibaba.demo05;
public class lianxi3 {
public static void main(String[] args) {
int count = 0;
for(int i = 1;i<=100;i++){
boolean boo = true;
for(int j=2;j<i;j++){
if(i%j==0){
boo = false;
}
}
if(boo){
count++;
System.out.printf("%5d",i);
if(count%10==0){
System.out.println();
}
}
}
}
}