To use this software, ensure you have the following installed on your system:
- Python 3.x: Download and install Python from python.org.
- SQLite3: Ensure SQLite3 is installed on your system. Most Linux distributions come with SQLite pre-installed. You can check by running:
If not installed, you can install it using your package manager. For example:
sqlite3 --version
sudo apt install sqlite3
- Clone this repository to your local machine:
git clone <repository-url>
- Navigate to the project directory:
cd Harkka
- Run the
prime_factors.pyscript to calculate prime factors:Follow the on-screen instructions to input a number and calculate its prime factors. The required SQLite database will be automatically created if it doesn't exist when you run the application for the first time. A separatepython src/prime_factors.py
values_and_prime_factorsfolder will be created to the project root containing text files from previously calculated values where the value is set as the file name and it's prime factors as the file content.