| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/subham500071430/JavaProgramming/patch-2/CheckPrimeNo.java | [Back] [Original] |
// Print if a number n is prime or not (Input n from the user).
import java.util.*;
public class CheckPrimeNo {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter the number: ");
int n = sc.nextInt();
int temp = 0;
/*boolean isPrime = true;
for(int i=2; i
| Web Proxy Viewer | New URL | Original Page |