This project provides Python scripts and datasets to generate prime gap waveforms β a novel visual representation of the gaps between consecutive prime numbers. Using the logarithmic midpoint between each prime pair and alternating the prime gaps in sign, the result is a striking, continuous waveform with both signal-like structure and emergent patterns.
- Generates coordinate pairs:
x = log10(midpoint of prime pair),y = Β±(prime gap) - Produces smooth, high-resolution waveform plots (PNG + SVG)
- Supports waveform generation up to 1 billion natural numbers
- Optionally exports coordinate data to CSV files for further analysis
- Creates the first known visual archive of prime gap behavior at this scale
- Offers a reproducible framework for:
- Mathematical pattern exploration
- Educational demonstrations
- Data-driven signal analysis (without traditional signal tools)
- Can support further research in number theory or AI pattern detection
- π¦ Full datasets up to 1 Billion numbers: Zenodo DOI [https://zenodo.org/records/15636895]
- π Preprint (coming soon): [arXiv link]
Created and maintained by Shashaank C D, independent researcher. This is part of an open-access contribution to mathematical exploration. Feel free to open issues or submit pull requests!
π ORCID: 0009-0006-0174-189X π LinkedIn: Shashaank CD
This project is licensed under the MIT License β feel free to use, modify, and share with attribution.
Make sure you have Python 3.8+ and the following libraries:
pip install sympy matplotlib pandas numpy scipy