C program example for prime number

What is prime number?

 

A number is considered as prime number when it fulfills the underneath conditions.

Example for prime numbers: 2, 3, 5, 7, 11, 13, 17, 19, 23 etc.

Why 4, 6, 8, 9, 10, 12, 14, 15, 16 etc are not prime numbers?

Since, the number 4 can be considered as 2*2 and 1*4. According to the govern of prime number, there ought to be 2 factors as it were. They are 1 and the number itself. In any case, number 4 has 2*2 too. Like this, every staying number 6, 8, 9, 10, 12, 14, 15, 16 have factors other than 1 and the number itself. In this way, these are not called as prime numbers.



Example C program for prime number:

   


HRD Review
HRD Review

Mith bairagi Is A Passionate Blogger. Who Enjoys Writing Articles on Techs, Blogging Tips And Reviews. He Is A "ANONYMOUSE SCRIPT KIDDIE HACKER" Contributor To Many Top Hacking Blogs. And Also A Freelance Writer And Member Of INDIAN CYBER ARMY (ICA) AND - I-HOS INDIAN HACKERS ONLINE SQUAD .