Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean isPrime(){
- if (this.value==1) { return false; }
- for (int i=2; i < this.value ;i++ ){
- if (this.value%i==0){ return false; }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement