A few functions related to prime numbers; generating them, checking for them, factoring into them.
- Generate a List of Primes: Create a list of prime numbers up to a specified limit.
- Prime Check: Verify if a given number is prime.
- Prime Factorization: Find the prime factors of a number.
- Clone the repository:
git clone https://github.com/your-username/PrimeNumbersApp.git cd PrimeNumbersApp
- Run the Python file:
python PrimeNumbersApp.py
The app will present a menu in the terminal where you can choose an option:
- Generate a list of primes.
- Check if a number is prime.
- Find the prime factors of a number. Follow the prompts to enter the desired number or range. The app will display results in the terminal.
- Generate List of Primes: Select option 1, then input a range limit.
- Prime Check: Select option 2, then input the number to check.
- Prime Factorization: Select option 3, then input the number for factorization.
- PrimeFormula: Calculates primes based on a mathematical formula.
- PrimeNumbers: Generates a list of prime numbers.
- PrimeCheck: Determines if a number is prime.
- PrimeFactorization: Provides prime factorization of a number.