Numbers have two factors as 1 and the number itself is known as prime numbers. To understand the complete process we need some previous topics to need to study. These are as follows:
1) Working with arithmetic operators: • Introduction to Arithmetic Operators [PART 1]
2) Working with if-else statement: • if-else Statement in C Programming
3) Working with while loop: • Working with while loop
4) Working process of user-defined function: • User Defined Function [Part-1]
C Program to check a given number is prime or not: https://onlinegdb.com/TWMvnnW5x
Like our Facebook page: / learncppprog