C Program to Print Maximum Prime Number Between 1 to N

In this example, you will learn print maximum prime number between 1 to n (entered by the user). The user will enter 100 input number and program will check all prime numbers till 100 and print highest prime number among them.

A prime is a number that is divisible only by itself and 1 (e.g. 2, 3, 5, 7, 11)