Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.17 KB | None | 0 0
  1.     public boolean isPrime(){
  2.         if (this.value==1) { return false; }
  3.         for (int i=2; i < this.value ;i++ ){
  4.               if (this.value%i==0){ return false; }
  5.         }
  6.         return true;
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement