C Program to print prime numbers from 1 to n

Print Prime Numbers from 1 to n in C program :

  • Print all prime numbers less than or up to n.
  • A number is prime if its only divisors are 1 and itself
  • All non-prime numbers less than 100 will have a divisor between 2 and 10.
C Program to print prime numbers from 1 to n

Print Prime numbers in C

OUTPUT for prime numbers from 1 to n

You can also learn about Java Program to check for Prime number here and use quora of more queries