Classical simulation of Shor's period-finding routine, wired through to factor 15 the way introductory quantum-computing texts describe it.
pip install -e ".[dev]"
python -c "from shorfactor import factor_demo; print(factor_demo())"
pytest- Finds the modular period of
a^x mod Nfor coprimea - Uses that period to extract a non-trivial factor when the demo conditions align