Skip to content

Mahdi-Code630/prime-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Œ Prime Number Checker (Tkinter)

This is a simple Python GUI application built with Tkinter that checks whether a given number is prime or not. The result is shown in green for prime numbers and red for non-prime numbers.


✨ Features

  • User-friendly Tkinter interface
  • Error handling for invalid or empty inputs
  • Green text for prime numbers, red text for non-prime numbers
  • Optimized prime checking using square root logic

πŸ“‚ Files

  • prime_gui.py β†’ Main application code

βš™οΈ How to Run

  1. Clone or download this repository:

    git clone https://github.com/username/prime-checker.git
    cd prime-checker
  2. Make sure Python 3.x is installed.

  3. Run the program:

    python prime_gui.py

πŸ“œ License

This project is licensed under the MIT License β€” free to use, modify, and distribute.

✍️ Written by MVdeveloper

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages