Papers
Topics
Authors
Recent
Search
2000 character limit reached

Prime-Detecting Quasimodular Forms

Updated 7 July 2026
  • 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 qq-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 τ∈H\tau\in\mathbb H and q=e2πiτq=e^{2\pi i\tau}, a quasimodular form on SL2(Z)\mathrm{SL}_2(\mathbb Z) is a holomorphic qq-series

f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n

lying in the polynomial ring

M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],

with the differential operator

D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}

acting on Fourier expansions by Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n. 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 τ∈H\tau\in\mathbb H0, the ambient ring becomes τ∈H\tau\in\mathbb H1, the algebra of quasimodular forms on τ∈H\tau\in\mathbb H2. A quasimodular form

τ∈H\tau\in\mathbb H3

is prime-detecting on τ∈H\tau\in\mathbb H4 if for every integer τ∈H\tau\in\mathbb H5,

τ∈H\tau\in\mathbb H6

The corresponding larger vanishing space is

τ∈H\tau\in\mathbb H7

(Kwon et al., 29 Jan 2026).

2. Partition-theoretic origin

The first explicit prime-detecting examples arose from MacMahon’s partition functions. For τ∈H\tau\in\mathbb H8,

τ∈H\tau\in\mathbb H9

These functions produce weighted partition statistics whose linear combinations detect primes. Two basic identities are: q=e2πiτq=e^{2\pi i\tau}0 with vanishing for q=e2πiτq=e^{2\pi i\tau}1 iff q=e2πiτq=e^{2\pi i\tau}2 is prime, and

q=e2πiτq=e^{2\pi i\tau}3

again vanishing exactly when q=e2πiτq=e^{2\pi i\tau}4 is prime. More generally, for the MacMahonesque functions

q=e2πiτq=e^{2\pi i\tau}5

there are infinitely many inequalities of the shape

q=e2πiτq=e^{2\pi i\tau}6

whose vanishing set, for q=e2πiτq=e^{2\pi i\tau}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-q=e2πiτq=e^{2\pi i\tau}8 functions q=e2πiτq=e^{2\pi i\tau}9, the paper on quasi-modularity in MacMahon partition variants gives exact odd-prime detectors: SL2(Z)\mathrm{SL}_2(\mathbb Z)0 and

SL2(Z)\mathrm{SL}_2(\mathbb Z)1

with the same sign pattern. At level SL2(Z)\mathrm{SL}_2(\mathbb Z)2, an analogous formula is

SL2(Z)\mathrm{SL}_2(\mathbb Z)3

which vanishes for primes except SL2(Z)\mathrm{SL}_2(\mathbb Z)4, is negative on powers of SL2(Z)\mathrm{SL}_2(\mathbb Z)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 SL2(Z)\mathrm{SL}_2(\mathbb Z)6, Eisenstein expansions, and higher-level analogues of divisor sums (Kang et al., 2024).

3. Level-SL2(Z)\mathrm{SL}_2(\mathbb Z)7 classification

The decisive structural result at level SL2(Z)\mathrm{SL}_2(\mathbb Z)8 is that prime-detecting quasimodular forms are Eisenstein. Writing SL2(Z)\mathrm{SL}_2(\mathbb Z)9 for the quasimodular Eisenstein space and qq0 for the prime-detecting forms, the main theorem is

qq1

Equivalently, any prime-detecting quasimodular form must lie in qq2; there are no cuspidal contributions, including derivatives of cusp forms. Moreover, for even qq3, the distinguished forms

qq4

are defined by

qq5

and, for qq6,

qq7

The classification then becomes explicit: qq8 and conversely every qq9 is a linear combination of the forms f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n0 (Ittersum et al., 27 Jul 2025).

Two complementary proofs are now available. The analytic proof shows that if f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n1 is a nonzero quasimodular cusp form with real Fourier coefficients, then the sequence f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n2, as f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n3 runs over primes, has infinitely many sign changes. By contrast, for f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n4, the signs of f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n5 stabilize for sufficiently large primes. This dichotomy forces the cuspidal part of any f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n6 to vanish, hence f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n7, and therefore f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n8 (Kane et al., 30 Jun 2025).

The alternative proof uses f(τ)=∑n≥0bn(f)qnf(\tau)=\sum_{n\ge0} b_n(f)q^n9-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 M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],0, the quasimodular cusp space decomposes into quasimodular new and quasimodular old parts,

M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],1

and the main structural theorem is

M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],2

Thus any quasimodular form on M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],3 whose coefficients vanish at all primes M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],4 has no quasimodular new cuspidal component. As a corollary, every prime-detecting quasimodular form on M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],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 M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],6 is one of the quasimodular Eisenstein prime detectors constructed from generalized divisor sums, and M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],7 with M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],8, then

M~=C[G2,G4,G6],\widetilde M=\mathbb C[G_2,G_4,G_6],9

is still prime-detecting on D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}0, but its cuspidal part is D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}1. The point is that D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}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 D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}3, the operator

D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}4

projects a quasimodular form to one residue class modulo D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}5. The spaces D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}6 and D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}7 encode vanishing at primes D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}8, and the main structural theorem shows that, after applying the relevant sieves D:=12πiddτ=qddqD:=\frac{1}{2\pi i}\frac{d}{d\tau}=q\frac{d}{dq}9 and Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n0, the visible part of a prime-detecting form is Eisenstein. The spanning sets are built from differences of forms

Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n1

which are designed so that the Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n2-th Fourier coefficient cancels for primes Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n3 (Kane et al., 6 Nov 2025).

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-Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n4 cumulant expansions whose genus-Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n5 generating functions are quasimodular forms. In the randomized HCIZ case, one has

Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n6

with

Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n7

and

Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n8

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 Dm:qn↦nmqnD^m:q^n\mapsto n^m q^n9, 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).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Prime-Detecting Quasimodular Forms.