# Prime Hunter GPU Deployment

This workspace now contains both a visual OpenGL compute-shader visualizer and a Python-based Mersenne sieve/verification tool.

## Visualizer
- `mersenne_field.comp` — GLSL 4.30 compute shader
- `visualizer.py` — Python host using GLFW + PyOpenGL

Run:
```bash
python visualizer.py
```

## Sieve / verifier
- `mersenne_sieve.py` — Python Mersenne candidate scorer and verifier

Examples:
```bash
python mersenne_sieve.py --score 136279841
python mersenne_sieve.py --verify 127
python mersenne_sieve.py --rank 1000 10 10
```

The `--verify` command now prints progress updates during trial factoring and Lucas-Lehmer.

## Requirements
- Python 3
- PyOpenGL
- glfw

Install with:
```bash
pip install PyOpenGL glfw
```

## Notes
- The visualizer is a real-time display of the shader field, not a deterministic proof engine.
- The Python sieve includes the HDGL-inspired fingerprint model and a Python big-integer Lucas-Lehmer fallback.
- For very large exponents, exact Lucas-Lehmer is intentionally skipped in Python because it is too slow without a specialized GPU or GMP-backed implementation.
