Answers for "c program to print all prime numbers"

C
1

prime number c program

int isPrime(int n) {
  for (int i = 2; i < n; i++) if (n % i == 0) return 0; 
  return 1;
}
Posted by: Guest on March-25-2021

Code answers related to "c program to print all prime numbers"

Code answers related to "C"

Browse Popular Code Answers by Language