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

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.

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, 10

Output: This Number is Prime: 5
This Number is Prime: 7
This Number is not Prime: 10.