https://github.com/mostafahima/prime-number-checker
Python program that checks if input numbers are prime and prints the result for each number individually.
https://github.com/mostafahima/prime-number-checker
math-library practice-programming practice-python prime-numbers
Last synced: 3 months ago
JSON representation
Python program that checks if input numbers are prime and prints the result for each number individually.
- Host: GitHub
- URL: https://github.com/mostafahima/prime-number-checker
- Owner: MostafaHima
- Created: 2024-12-16T06:27:05.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-16T06:32:08.000Z (5 months ago)
- Last Synced: 2024-12-28T16:49:59.847Z (5 months ago)
- Topics: math-library, practice-programming, practice-python, prime-numbers
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prime Number Checker
This Python program takes a list of numbers, checks each number, and determines whether it's a prime number or not.
## Features
- Accepts a list of numbers separated by commas (e.g., `5, 7, 10`).
- Checks whether each number is a prime number.
- Prints a message indicating whether each number is prime or not.## How to Use
1. Clone or download the repository.
2. Open a terminal/command prompt.
3. Run the Python script:```bash
python main.py### Example
```python
Input: Type The Number (separated by commas) or one number: 5, 7, 10Output: This Number is Prime: 5
This Number is Prime: 7
This Number is not Prime: 10.