C – List All Prime Numbers Between 1 to N
Write a C Program to List All the Prime Numbers Between 1 to N. Where N is the maximum number entered by the user.
Compile and run the program.
Enter max number: 50 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47,