dual-prime-explorer

Dual Prime Explorer

Dual Prime Explorer is a mathematical exploration engine for studying twin primes through both computation and mathematical context.

Twin primes are pairs of primes that differ by 2, such as (3, 5), (5, 7), and (11, 13).

Project Goals

Core API

The package currently exposes:

Web App

Launch the browser UI from the project root:

$env:PYTHONPATH='src'
python -m dual_prime_explorer --serve

Then open:

http://127.0.0.1:8000/lab

Local Development Mode

For UI work, you can run the server in development mode so HTML, CSS, JavaScript, and theory-content edits are picked up on the next browser refresh without restarting the Python process:

$env:PYTHONPATH='src'
python -m dual_prime_explorer --serve --dev

In --dev mode, the server reloads the web UI modules on each request and sends no-store cache headers so the browser does not hold onto stale assets.

Web Routes

The app now uses real top-level routes:

Web Structure

The web layer is split so additional pages are easier to add:

Theory Page

The Theory route contains tabbed reference material for:

Theory now also links back into the interactive product through targeted Lab, Explorer, and Analysis entry points, while the Glossary provides lightweight return links into selected Theory topics.

The theory tabs support direct linking by URL hash, for example:

http://127.0.0.1:8000/theory#approaches