Prime-Detecting Quasimodular Forms
- The paper demonstrates that prime-detecting quasimodular forms are holomorphic q-series whose coefficients vanish exactly at prime indices, achieved via Eisenstein series and their derivatives.
- It links the origins from MacMahon partition identities to a structural classification that uses differential operators to enforce prime-detection.
- Extensions to higher levels involve oldforms and arithmetic progressions, connecting classical modular theory with non-arithmetic insights from random matrix theory.
Prime-detecting quasimodular forms are holomorphic -series in the quasimodular framework whose Fourier coefficients vanish exactly at prime indices, or at primes in specified arithmetic progressions in higher-level variants. The subject emerged from identities for MacMahon partition functions and was subsequently given a structural classification: at level $1$, every prime-detecting quasimodular form lies in the quasimodular Eisenstein space, while in higher levels the allowable non-Eisenstein contribution is constrained to quasimodular oldforms. Alongside these arithmetic constructions, recent work has identified non-arithmetic sources of quasimodularity—most notably from random matrix theory—that explicitly suggest possible adaptations to prime-detection (Ittersum et al., 27 Jul 2025, Kwon et al., 29 Jan 2026).
1. Definition and ambient algebra
For and , a quasimodular form on is a holomorphic -series
lying in the polynomial ring
with the differential operator
acting on Fourier expansions by . The mixed-weight subspace
$1$0
consists of finite sums of pure-weight quasimodular forms of weights $1$1 (Ittersum et al., 27 Jul 2025).
In the level-$1$2 theory, a quasimodular form $1$3 is called prime-detecting if
$1$4
and for all integers $1$5,
$1$6
The set of such forms is denoted $1$7. The quasimodular Eisenstein space $1$8 is the additive span of even weight Eisenstein series and their derivatives. A larger space,
$1$9
is used in the structural proofs because vanishing at all prime indices is easier to analyze than the full nonnegativity condition (Kane et al., 30 Jun 2025).
At higher level 0, the ambient ring becomes 1, the algebra of quasimodular forms on 2. A quasimodular form
3
is prime-detecting on 4 if for every integer 5,
6
The corresponding larger vanishing space is
7
2. Partition-theoretic origin
The first explicit prime-detecting examples arose from MacMahon’s partition functions. For 8,
9
These functions produce weighted partition statistics whose linear combinations detect primes. Two basic identities are: 0 with vanishing for 1 iff 2 is prime, and
3
again vanishing exactly when 4 is prime. More generally, for the MacMahonesque functions
5
there are infinitely many inequalities of the shape
6
whose vanishing set, for 7, is precisely the primes. The key structural statement is that these expressions are Fourier coefficients of specific quasimodular forms built from Eisenstein series and their derivatives (Ittersum et al., 27 Jul 2025).
The same mechanism persists in higher-level MacMahon variants. For the level-8 functions 9, the paper on quasi-modularity in MacMahon partition variants gives exact odd-prime detectors: 0 and
1
with the same sign pattern. At level 2, an analogous formula is
3
which vanishes for primes except 4, is negative on powers of 5, and positive otherwise (Kang et al., 2024).
These constructions are not merely combinatorial. They depend on realizing the generating functions as quasimodular forms and then transporting prime-detecting sign patterns through the operator 6, Eisenstein expansions, and higher-level analogues of divisor sums (Kang et al., 2024).
3. Level-7 classification
The decisive structural result at level 8 is that prime-detecting quasimodular forms are Eisenstein. Writing 9 for the quasimodular Eisenstein space and 0 for the prime-detecting forms, the main theorem is
1
Equivalently, any prime-detecting quasimodular form must lie in 2; there are no cuspidal contributions, including derivatives of cusp forms. Moreover, for even 3, the distinguished forms
4
are defined by
5
and, for 6,
7
The classification then becomes explicit: 8 and conversely every 9 is a linear combination of the forms 0 (Ittersum et al., 27 Jul 2025).
Two complementary proofs are now available. The analytic proof shows that if 1 is a nonzero quasimodular cusp form with real Fourier coefficients, then the sequence 2, as 3 runs over primes, has infinitely many sign changes. By contrast, for 4, the signs of 5 stabilize for sufficiently large primes. This dichotomy forces the cuspidal part of any 6 to vanish, hence 7, and therefore 8 (Kane et al., 30 Jun 2025).
The alternative proof uses 9-adic Galois representations attached to cusp forms. It shows that the large image of residual Galois representations forces enormous flexibility in the values of cusp-form coefficients at primes in arithmetic progressions, incompatible with the rigid vanishing pattern required by prime detection. In this form, the theorem becomes a statement about the incompatibility between prime-detecting coefficient patterns and nontrivial cuspidal Galois data (Ittersum et al., 27 Jul 2025).
4. Higher levels and arithmetic progressions
Higher level introduces two distinct modifications. First, prime-detecting quasimodular forms need not be Eisenstein. Second, arithmetic progressions become intrinsic to the problem.
For 0, the quasimodular cusp space decomposes into quasimodular new and quasimodular old parts,
1
and the main structural theorem is
2
Thus any quasimodular form on 3 whose coefficients vanish at all primes 4 has no quasimodular new cuspidal component. As a corollary, every prime-detecting quasimodular form on 5 belongs to the direct sum of the quasimodular Eisenstein space and the quasimodular old space (Kwon et al., 29 Jan 2026).
This refinement is necessary because higher level genuinely admits non-Eisenstein examples. If 6 is one of the quasimodular Eisenstein prime detectors constructed from generalized divisor sums, and 7 with 8, then
9
is still prime-detecting on 0, but its cuspidal part is 1. The point is that 2 is an oldform, so it does not contradict the theorem (Kwon et al., 29 Jan 2026).
For arithmetic progressions, the natural language is that of sieving operators. On 3, the operator
4
projects a quasimodular form to one residue class modulo 5. The spaces 6 and 7 encode vanishing at primes 8, and the main structural theorem shows that, after applying the relevant sieves 9 and 0, the visible part of a prime-detecting form is Eisenstein. The spanning sets are built from differences of forms
1
which are designed so that the 2-th Fourier coefficient cancels for primes 3 (Kane et al., 6 Nov 2025).
5. Related quasimodular mechanisms outside arithmetic detection
A distinct but closely related development comes from random matrix theory. Hypergeometric functions of complex matrices, viewed as holomorphic observables of the Circular Unitary Ensemble, give large-4 cumulant expansions whose genus-5 generating functions are quasimodular forms. In the randomized HCIZ case, one has
6
with
7
and
8
The coefficients are governed by monotone Hurwitz numbers and Bloch–Okounkov averages of symmetric functions in partition contents (Novak, 2024).
This construction is explicitly described as non-arithmetic, but structurally very close to classical number-theoretic appearances of quasimodular forms. The same work states that the framework can plausibly be adapted to questions with arithmetic content, such as prime-detection. A plausible implication is that prime-detecting quasimodular forms may admit constructions that pass through symmetric-group factorizations, content polynomials, and Bloch–Okounkov averages rather than beginning directly from partition inequalities (Novak, 2024).
The significance of this connection is methodological rather than classificatory. It does not produce prime-detecting forms, but it enlarges the known range of quasimodular mechanisms that might support such forms.
6. Scope, misconceptions, and constraints
Prime-detecting quasimodular forms should not be conflated with other prime-related phenomena in the theory of quasimodular forms. One such phenomenon concerns extremal quasimodular forms. Their Fourier coefficients satisfy strong denominator restrictions: for normalized extremal forms of small depth, the denominators involve only primes less than the weight. This is a statement about prime factors in denominators, not about vanishing of coefficients at prime indices (Mono, 2020).
A second distinction is asymptotic. For extremal quasimodular forms of depth 9, the coefficients are eventually positive and are governed by Eisenstein-dominated asymptotics built from divisor sums. In particular, all but finitely many Fourier coefficients are positive, and the leading terms have the shape of weighted divisor sums rather than sparse prime-indicator behavior. This rules out any direct prime-detecting interpretation for extremal quasimodular forms in the sense used for $1$00 (Grabner, 2020).
Within the prime-detecting theory itself, the central misconception is that cuspidal pieces might be used to sharpen detection. The level-$1$01 classification shows the opposite: cusp forms are excluded because their prime-index coefficients are too oscillatory. In higher level, cusp forms can persist only through oldforms or through components annihilated by the relevant sieving operators. Prime detection is therefore rigidly tied to Eisenstein structure, with oldform corrections appearing only when the level creates invisible directions (Kane et al., 30 Jun 2025, Kwon et al., 29 Jan 2026).
The current picture is therefore sharply stratified. At level $1$02, prime-detecting quasimodular forms are exactly the linear combinations of $1$03. At higher level, the visible part in any arithmetic progression is Eisenstein, while the full space may include quasimodular oldforms. Separate non-arithmetic constructions from random matrices show that quasimodularity itself is much broader than its presently known prime-detecting realizations, and this suggests that the next advances are likely to come from new ways of encoding arithmetic data into already established quasimodular frameworks (Ittersum et al., 27 Jul 2025, Kane et al., 6 Nov 2025, Novak, 2024).