All Prime Number Between 1 to n using Java Program | Java Program | @CodeWithAvi

preview_player
Показать описание
In this video we are going to learn how we can take inputs from the user as a ending Number and give an output of all Prime number till the ending number using Java Program.

/*
Prime number is a number that is divisible only by 1 and itself.

For example:

5 is a prime number as it is divisible only by 1 and 5

6 is not a prime number as it is divisible by 1,2,3 and 6.

In this program we print the list of all prime numbers between 1 to n.
*/
Рекомендации по теме