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 ||
- Host: GitHub
- URL: https://github.com/patilyashh/cprimechecker
- Owner: PATILYASHH
- Created: 2024-02-12T17:31:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T17:48:39.000Z (over 2 years ago)
- Last Synced: 2025-03-02T16:22:30.495Z (over 1 year ago)
- Language: C
- Size: 79.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
```
```