# C Program to print the Prime numbers between 1 and 100 Using Recursion

## C Program to print the Prime numbers between 1 and 100 Using Recursion

This page has a C Program to print the Prime numbers between 1 and 100 using Recursion. The Prime numbers are numbers which belongs to integers and have no divisors other than 1 and the particular numbers. For example: 79,   83,   89,   97  are  Prime numbers. The below given C programis used to print the Prime numbers between 1 and 100 using Recursion. Kindly check out the program to print the Prime numbers between 1 and 100 using Recursion.

## How eill ask to print the Prime numbers between 1 and 100 using Recursion

The questions to print the Prime numbers between 1 and 100 using Recursion can be asked as  1). C program to print all prime numbers between 1 and 100 using Recursion.  2). C program to print all prime numbers from 1 to 100 using Recursion.  3). C program to print the prime numbers within 1 and 100 using Recursion.  4). C program to print the list of prime numbers between 1 and 100 using Recursion

### Program to print the Prime numbers between 1 and 100 using Recursion

#include<stdio.h>
int prime(int, int);
int main(){
int numbr,k,remark=1;
printf(" The prime numbers between 1 and 100 using recursion . . . \n");
for(numbr=2;numbr<=100;++numbr)
{
remark = prime(numbr, numbr/2);
if(remark==1)
printf(" %d ",numbr);
}
return 0;
}

int prime(int num, int max){
if(max == 1)
return 1;
else
{
if(num % max == 0)
return 0;
else
prime(num, max-1);
}
}

Sample output:
The prime numbers between 1 and 100 using recursion . . .
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97

Related Popular Posts:

## C program to Display prime numbers between 1 and 100

The above C program is used to display (print) prime numbers between 1 and 100. The prime numbers are non divisable positive integer numbers. Kindly check out the program to display the prime numbers between 1 and 100.