Skip to content

Code to generate and plot prime gap waveform data up to 1 billion

Notifications You must be signed in to change notification settings

shashaankcd/prime_waveform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Prime Number Waveform β€’ Visualizing Prime Gaps up to 1 Billion

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.

πŸ“Œ What This Project Does

  • 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

πŸ’‘ Why It’s Useful

  • 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

πŸ“š Dataset & Paper

πŸ™‹β€β™‚οΈ Who Maintains This

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!

πŸ“¬ Contact

🌐 ORCID: 0009-0006-0174-189X πŸ”— LinkedIn: Shashaank CD

πŸ“„ License

This project is licensed under the MIT License β€” feel free to use, modify, and share with attribution.

πŸš€ Getting Started

Requirements

Make sure you have Python 3.8+ and the following libraries:

pip install sympy matplotlib pandas numpy scipy

About

Code to generate and plot prime gap waveform data up to 1 billion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages