Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.80K
1 Posted Topic
[CODE]public class primeNumber { public void isPrimeNumber(int UserInput){ int j = 0; for(int i = 2 ; i<UserInput ; ++i ){ if((i%2)==0){ j = i/2; }else{ j = (i+1)/2; } int c = 0; while(j>1){ if((i%j)==0){ c = c + 1; } j--; } if(c==0){ System.out.println(i + " is a …
The End.
Arindam_joy