An open API service indexing awesome lists of open source software.

https://github.com/patilyashh/cprimechecker

Day 2 of 75 Days C programing challenge || #2 ||
https://github.com/patilyashh/cprimechecker

Last synced: 30 days ago
JSON representation

Day 2 of 75 Days C programing challenge || #2 ||

Awesome Lists containing this project

README

          

# Prime Number Checker

## Description
This is a simple C program that checks whether a given number is a prime number or not. It prompts the user to input a number and then determines if the entered number is prime or not.

## Features
- Takes user input for a number to be checked.
- Determines if the entered number is prime or not.
- Outputs the result indicating whether the number is prime or not.

## Usage
1. Compile the program using a C compiler.
2. Run the compiled executable.
3. Enter a number when prompted.
4. The program will output whether the entered number is prime or not.

## How to Compile
To compile the program, use a C compiler such as GCC. Here's an example command:
```bash
gcc -o prime_checker prime_checker.c
```
##How To Run
After compiling, execute the compiled program. Here's an example command:
```bash
./prime_checker
```
##Example
```
Enter a number: 17
17 is a prime number.
```
##Contribution:
Contributions are welcome! Feel free to fork the repository, make improvements, and submit pull requests.
```
```