Prime number program in C
Prime number program in C language. A number is prime if it's divisible only by one and itself.
Two is the only even and the smallest prime number. First few prime numbers are 2, 3, 5, 7, 11, 13, 17, .... Prime numbers have many applications in computer science and mathematics. A number greater than one can be factorized into prime numbers, for example, 120 = 23*31*51 (8*3*5).
output:
Enter the number of prime numbers to print
10
First 10 prime numbers are:
2
3
5
7
11
13
17
19
23
29
need an explanation for this answer? contact us directly to get an explanation for this answer