A Prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. It means it is only divisible by 1 and itself, and it start from 2. The smallest prime number is 2.
Here i will show you how to write this program. You can also download below code nad extract file, after extract file you can easily run the program.
SOURCE CODE::
OUTPUT ::
need an explanation for this answer? contact us directly to get an explanation for this answer