public class Prime { public static void main(String[] args){ int n=1; int i; do{ i=2; while(i<n){ if(n%i==0) break; i++; } if(i>n/2&&n!=1) System.out.println(n); n++; }while(n<=100); } }