Skip to content

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

License

Notifications You must be signed in to change notification settings

OpenGenus/prime-factor-flask-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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