Guest User

Untitled

a guest
Apr 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public class Prime {
  2. public static void main(String args[]) {
  3. int x=1, y=2;
  4.  
  5. for(x=1; x<=100; x++) {
  6. for(y=2; y<=9; y++) {
  7. if(x%y == 0 && x!=y) break;
  8. }
  9. if(x%y != 0) System.out.println(x);
  10. y = 2;
  11. }
  12. }
  13. }
Add Comment
Please, Sign In to add comment