Skip to content

mikolalysenko/dirichlet-explorer

Repository files navigation

Dirichlet's Prime Number Theorem — An Explorable Explanation

An interactive, visual guide to one of the most beautiful theorems in mathematics: Dirichlet's theorem on primes in arithmetic progressions.

Live demo

What is this?

If you pick any starting number and step size that share no common factor, the sequence contains infinitely many primes — and they're spread equally among all valid starting points. Dirichlet proved this in 1837 by inventing entirely new mathematics.

This explorable explanation breaks the proof down into 8 sections with 20+ interactive visualizations, making it accessible to a motivated middle school student.

Sections

  1. Hook — pick a progression, watch primes appear
  2. Primes — factor trees, Euclid's argument, prime density
  3. Arithmetic Progressions — the mod-q grid, coprimality, Euler's totient
  4. Modular Arithmetic — remainder clocks, multiplication tables, group structure
  5. Dirichlet Characters — complex arrows, phasor sweeps, orthogonality, the extraction formula
  6. L-Functions — harmonic series, the s-dial, Euler product, the key formula
  7. Non-Vanishing — the product trick, pole/zero playground, the non-negative series trap
  8. The Full Picture — proof map, equidistribution, exploration sandbox

Running locally

npm install
npm run dev

Deploying

npm run deploy

Builds and pushes to the gh-pages branch for GitHub Pages hosting.

Tech stack

Authors

Maksym Lysenko and Claude Opus 4.6

License

MIT

Links

About

Explorable explanation for the Dirichlet prime number theorem (specified by Max, implemented by Claude)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors