Table of Contents
Fetching ...

Primality Testing via Circulant Matrix Eigenvalue Structure: A Novel Approach Using Cyclotomic Field Theory

Marius-Constantin Dinu

TL;DR

This work introduces a deterministic primality test based on the eigenvalue structure of circulant matrices derived from roots of unity, showing that for any $n>2$ primality corresponds to the minimal polynomial of $C_n = W_n + W_n^2$ having exactly two irreducible factors over $\mathbb{Q}$. The method hinges on cyclotomic-field and Galois-theoretic analyses: the eigenvalues $\mu_j = \lambda_j + \lambda_j^2$ partition into Galois orbits whose count equals the number of irreducible factors, yielding a prime-specific two-factor pattern. The paper develops both a full, rigorous implementation (explicit orbit computations) and a simplified, divisor-structure-based variant, analyzes complexity relative to classical tests, and presents experimental validation across multiple input ranges, demonstrating clear separation between primes and composites. While offering a deterministic alternative with deep algebraic insights, the approach faces scalability challenges for very large inputs, where probabilistic methods like Miller–Rabin often prevail in practice; nonetheless, the framework provides valuable connections between circulant matrix spectra, cyclotomic fields, and primality testing with educational and theoretical benefits.

Abstract

This paper presents a novel primality test based on the eigenvalue structure of circulant matrices constructed from roots of unity. We prove that an integer $n > 2$ is prime if and only if the minimal polynomial of the circulant matrix $C_n = W_n + W_n^2$ has exactly two irreducible factors over $\mathbb{Q}$. This characterization connects cyclotomic field theory with matrix algebra, providing both theoretical insights and practical applications. We demonstrate that the eigenvalue patterns of these matrices reveal fundamental distinctions between prime and composite numbers, leading to a deterministic primality test. Our approach leverages the relationship between primitive roots of unity, Galois theory, and the factorization of cyclotomic polynomials. We provide comprehensive experimental validation across various ranges of integers, discuss practical implementation considerations, and analyze the computational complexity of our method in comparison with established primality tests. The visual interpretation of our mathematical framework provides intuitive understanding of the algebraic structures that distinguish prime numbers. Our experimental validation demonstrates that our approach offers a deterministic alternative to existing methods, with performance characteristics reflecting its algebraic foundations.

Primality Testing via Circulant Matrix Eigenvalue Structure: A Novel Approach Using Cyclotomic Field Theory

TL;DR

This work introduces a deterministic primality test based on the eigenvalue structure of circulant matrices derived from roots of unity, showing that for any primality corresponds to the minimal polynomial of having exactly two irreducible factors over . The method hinges on cyclotomic-field and Galois-theoretic analyses: the eigenvalues partition into Galois orbits whose count equals the number of irreducible factors, yielding a prime-specific two-factor pattern. The paper develops both a full, rigorous implementation (explicit orbit computations) and a simplified, divisor-structure-based variant, analyzes complexity relative to classical tests, and presents experimental validation across multiple input ranges, demonstrating clear separation between primes and composites. While offering a deterministic alternative with deep algebraic insights, the approach faces scalability challenges for very large inputs, where probabilistic methods like Miller–Rabin often prevail in practice; nonetheless, the framework provides valuable connections between circulant matrix spectra, cyclotomic fields, and primality testing with educational and theoretical benefits.

Abstract

This paper presents a novel primality test based on the eigenvalue structure of circulant matrices constructed from roots of unity. We prove that an integer is prime if and only if the minimal polynomial of the circulant matrix has exactly two irreducible factors over . This characterization connects cyclotomic field theory with matrix algebra, providing both theoretical insights and practical applications. We demonstrate that the eigenvalue patterns of these matrices reveal fundamental distinctions between prime and composite numbers, leading to a deterministic primality test. Our approach leverages the relationship between primitive roots of unity, Galois theory, and the factorization of cyclotomic polynomials. We provide comprehensive experimental validation across various ranges of integers, discuss practical implementation considerations, and analyze the computational complexity of our method in comparison with established primality tests. The visual interpretation of our mathematical framework provides intuitive understanding of the algebraic structures that distinguish prime numbers. Our experimental validation demonstrates that our approach offers a deterministic alternative to existing methods, with performance characteristics reflecting its algebraic foundations.
Paper Structure (66 sections, 9 theorems, 5 equations, 5 figures, 2 tables, 7 algorithms)

This paper contains 66 sections, 9 theorems, 5 equations, 5 figures, 2 tables, 7 algorithms.

Key Result

Lemma 3.2

The eigenvalues of $W_n$ are precisely the complex numbers $\lambda_j = e^{2\pi i j/n}$ for $j = 0, 1, \ldots, n-1$, with corresponding eigenvectors $v_j = [1, \lambda_j, \lambda_j^2, \ldots, \lambda_j^{n-1}]^T$.

Figures (5)

  • Figure 1: Cyclical patterns in minimal polynomial coefficients for prime and composite numbers. Prime numbers exhibit regular, extended oscillatory patterns with smooth transitions. Composite numbers show irregular, compressed patterns with sharp transitions. The stark contrast in coefficient behavior provides a visual signature of primality.
  • Figure 2: Dynamical system view of cyclotomic criteria separating primes and composites. Each point represents an integer plotted according to its number of irreducible factors (x-axis) and spectral property value (y-axis). Prime numbers cluster at exactly 2 factors with high spectral values (0.6-0.9), while composites appear at 3+ factors with generally lower spectral values. The vertical dashed line at 2.5 factors perfectly separates the two classes.
  • Figure 3: Top: Eigenvalue distributions in the complex plane for $n=97$ (prime) and $n=90$ (composite). The eigenvalues of the prime case form a single, connected Galois orbit (blue points), while the composite case shows subtle discontinuities and multiple orbital structures (red points). Bottom: Cyclotomic field extension structure for $n=97$ (prime) and $n=90$ (composite). The prime case shows a simple two-level structure, while the composite case exhibits a complex network of intermediate fields corresponding to divisors of 90.
  • Figure F1: Execution time of various primality testing algorithms across increasing input sizes from $10^2$ to $10^{15}$, shown on a log-log scale.
  • Figure F2: Memory usage of primality testing algorithms across increasing input sizes from $10^2$ to $10^{15}$, shown on a log-log scale.

Theorems & Definitions (11)

  • Definition 3.1: Basic Circulant Matrix
  • Lemma 3.2: Eigenvalues of $W_n$
  • Definition 3.3: Composite Circulant Matrix
  • Corollary 3.4: Eigenvalues of $C_n$
  • Theorem 3.5: Main Theorem
  • Proposition 3.6
  • Proposition 3.7
  • Lemma A.1
  • Proposition A.2
  • Theorem A.3: Orbit Count Formula
  • ...and 1 more