OpenGenus / prime-factor-flask-app

Flask Web Application to take number as input and do Prime Factorization in server (by OG intern, Kirabo Ibrahim)

Home Page:https://iq.opengenus.org/prime-factorization-web-application/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask Web Application for Prime Factorization

Prime Factorization Application Screenshot

Understand how this application has been developed step by step: Step-by-Step Guide

A flask web application for prime factorizing integers. The focus of this project is centered around prime factorization. Developing it as a web application is a means of extending the application service to the public but the core function is prime factorization. A modular approach has been followed to ease reuse and separate business logic from presentation logic.

The application uses the Pollard's Rho algorithm with a flavor of Floyd's cycle detection algorithm. The implementation of the Pollard Rho algorithm is in the file 'prime_factorization.py' and the web application is contained in the 'app.py' file.

Running the application

Preferably, creating a virtual environment before installing the requirements is better.

Creating a virtual environment

python3 -m venv flask-sanbox

source flask-sanbox/bin/activate

Installing required packages

pip install -r requiremnts.txt

Serving application

flask run

About

Flask Web Application to take number as input and do Prime Factorization in server (by OG intern, Kirabo Ibrahim)

https://iq.opengenus.org/prime-factorization-web-application/

License:GNU General Public License v3.0


Languages

Language:HTML 58.8%Language:Python 41.2%