What is Prime number ? The prime number mean any number divisible 1 and number itself that number known as prime number otherwise that number is not prime number. In other word we can say that prime number mean only two factors of any number that number known as prime number. For example 5 is prime number their only two factors 1,5 (number itself). What is not prime number mean if any number divisible one, itself and other divisible possible like 2. so that number is not prime number. In other word we can say that not prime number mean that number more than two factors. For example 8 number is not prime because their more two factors 1,8,2,4.
Here logic set by like we check 5 number is prime or not, so we can divisible 2,3,4 in this set we can not take 1 and number itself,
In this video lecture cover the prime number or not using three variable, while loop, simple if and if else decision statement.
Download
0 formats
No download links available.
Prime Number in Java Programming Language | NatokHD