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.
- 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
prime_gui.pyβ Main application code
-
Clone or download this repository:
git clone https://github.com/username/prime-checker.git cd prime-checker -
Make sure Python 3.x is installed.
-
Run the program:
python prime_gui.py
βοΈ Written by MVdeveloper