# C program to display the prime numbers between 1 and 100

## C Program to find (print) the Prime numbers between 1 and 100

This page has a C program to display the prime numbers between 1 and 100. The Prime number is a whole number and has no divisors other than 1 and the tested number. The Prime number can be divisable by 1 and the number itself. If a number has more positive divisors other than 1 and the number itself, then the number is not Prime number. For example: 2, 3, 5, 7, 11, 13, 17  . . . are Prime numbers. The below given C program to display (print) the prime numbers between 1 and 100. Kindly check out the program to display the prime numbers between 1 and 100.

## How will ask to display or print the prime numbers between 1 and 100

The questions to display or print the prime numbers between 1 and 100 can be asked as 1). C program to print all prime numbers between 1 and 100.  2). C program to display all prime numbers between 1 and 100.  3). C program to list the prime numbers between 1 and 100.  4). C program to print the prime numbers between 1 and 100.  5). C Program to Display Prime Numbers between Two Intervals.  6). C Program to Print all prime number between 1 to 100.  7). C program to display the prime numbers between 1 to 100.  8). C program to print all prime numbers between 1 and n.  9). C program to print the prime numbers between 1 and n.  10). C program to print all prime numbers between any two Intervals.  11). C program to list all prime numbers between 1 and 100 .  12). C program to display the prime numbers between 1 and n  .  13). C program to print the prime numbers.  14). C program for prime numbers.  15). C program to display the prime numbers from 1 and 100.  16). C program to generate the prime numbers from 1 and 100.  17). C program to print the prime numbers from 1 and 100

### Program to display the prime numbers between 1 and 100

#include<stdio.h>

int main(){

int numbr,k,remark;

printf(" The prime numbers between 1 and 100 : \n");

for(numbr=2;numbr<=100;++numbr)

{

remark=0;

for(k=2;k<=numbr/2;k++){

if((numbr % k) == 0){

remark++;

break;

}

}

if(remark==0)

printf("\n    %d ",numbr);

}

return 0;

}

Sample output:

The prime numbers between 1 and 100 :

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

## 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.