Skip to content

isekar0/PythonPrimeNumbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PythonPrimeNumbers

A few functions related to prime numbers; generating them, checking for them, factoring into them.

Features

  • 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.

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/PrimeNumbersApp.git
    cd PrimeNumbersApp
    
  2. Run the Python file:
    python PrimeNumbersApp.py
    

Usage

The app will present a menu in the terminal where you can choose an option:

  1. Generate a list of primes.
  2. Check if a number is prime.
  3. 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.

Example Commands

  • 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.

Project Structure

  • 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.

About

A few functions related to prime numbers; generating them, checking for them, factoring into them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages