This toolkit provides feature extraction and analysis utilities for studying structural properties of prime numbers using the Regina Field framework.
For the previous digit-based feature extraction approach, see:
README_legacy.md
The toolkit computes structural features derived from prime step sequences, including:
These features define an embedding of primes into a curvature–entropy feature space, which is used for structural analysis of prime distributions.
extract_sequence_features.pyThis script processes a CSV of candidate numbers and computes:
The input CSV must contain a column named:
Candidate
Each row should contain an integer value.
python extract_sequence_features.py --input known_primes.csv --output enriched_output.csv
The output CSV will include:
Candidate, MotifSum, Entropy, Curvature, ...
This output is compatible with downstream Regina Field analysis pipelines.
The sequence-based approach differs from earlier versions by operating on prime step sequences rather than digit patterns.
Key aspects include:
[2,4] and [4,2] motifsThis produces a structured representation of primes in feature space.
This release introduces a sequence-based feature extraction method.
Previous versions of the toolkit used a digit-based approach.
Those versions are preserved for transparency but are not used in current analyses.
The results presented in:
The Regina Field: Discrete Entropy-State Structure in Prime Distributions and Its Relationship to Prime Counting Error
were generated using this version of the toolkit.
6 → [2,4] and [4,2])middlebrookstech@gmail.com