Hyperbolic Trial-Division Product: An Exactly Roundable Prime Indicator and an Explicit Formula for the n-th Prime

We present a prime indicator and an explicit formula for the $n$-th prime that depend only on elementary functions. The central object is the **hyperbolic divisibility kernel** $$ D_\beta(n,d)=\frac{e^{-\beta r}+e^{-\beta(d-r)}}{1+e^{-\beta d}}=\frac{\cosh\big(\beta(\tfrac d2-r)\big)}{\cosh(\beta d/2)},\qquad r=n\bmod d, $$ which is the normalized two-point function of the wrapped exponential kernel on the circle (i.e., the Green's function of the operator $-\partial_x^2+\beta^2$). We give two independent derivations (geometric series and spectral decomposition). Embedding this kernel into the trial-division product $$ T_\beta(n)=\prod_{d}\big(1-D_\beta(n,d)\big),\qquad I_{\mathrm{hyp}}(n)=\Big\lfloor T_\beta(n)+\tfrac12\Big\rfloor, $$ and choosing the product domain and temperature $\beta$ appropriately, we obtain **$I_{\mathrm{hyp}}(n)=\mathbf 1_{n\text{ prime}}$ exactly for all $n\ge2$** (Theorems 4.2, 4.3): the vanishing on the composite branch is a **syntactic fact** (when $r=0$, numerator and denominator are the same expression, IEEE division yields exactly $1$, and the factor is exactly $0$), while the rounding margin on the prime branch is an explicit constant ($\ge 7/8$). From this, via counting inversion and the explicit prime upper bound $M_2(n)=\big\lceil n(\ln(n+2)+\ln\ln(n+3))\big\rceil$, we obtain the $n$-th prime formula **free of minimization operators**: $$ p_n=\sum_{m=2}^{M_2(n)} m\left\lfloor\frac{1}{1+(S(m)-n)^2}\right\rfloor\left\lfloor\frac{1}{1+(S(m-1)-n+1)^2}\right\rfloor,\qquad S(m)=\sum_{k=2}^{m}I_{\mathrm{hyp}}(k), $$ and further give a **single self-contained formula** (Theorem 6.7) with $S$ and $I_{\mathrm{hyp}}$ fully inlined: it contains only the atoms $\{+,-,\times,\div,\exp,\ln,\sqrt{\ },\lfloor\ \rfloor\}$ and depends on no external definition other than the variable $n$. The floating-point correctness of the entire construction **requires neither cancellation control nor compensated summation**. Under the explicit computation hypothesis (H) (§5.0), we give an explicit per-factor error budget $|\widehat D-D|\le D\,u(10+10\beta d)+2^{-1072}$ (Theorem 5.2), and prove **loss damping**: on the prime branch, the per-factor perturbation is damped by the closed-form bound $\operatorname{sech}\beta^*\le\frac{1}{8\sqrt n}$ of the kernel, and the product drift (regardless of the signs of the individual factor perturbations) satisfies $$ |\widehat T-T|\ \le\ \frac{2u\,T\,(10+5\beta^*(\sqrt n+1))}{7}\ <\ 3.5\times10^{-7}\qquad(2\le n<2^{53},\ \beta=\beta^*), $$ which is far smaller than the rounding margin $\tfrac38$, so the rounding conclusion is preserved **pointwise on the entire domain** $2\le n<2^{53}$ (Theorem 5.4, Corollary 5.5). This contrasts with classical trigonometric formulas that rely on root-of-unity cancellation. We also delineate the boundary of this construction: a real exponential polynomial has only finitely many zeros on the real axis (Chebyshev system property), so a **purely hyperbolic (nonnegative kernel) mechanism can produce "support-type" data (primality) but not "phase-type" data (the Möbius sign)**—primality falls exactly within the reach of the hyperbolic world (§7.3).

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24704625
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Hyperbolic Trial-Division Product: An Exactly Roundable Prime Indicator and an Explicit Formula for the n-th Prime

Ni Chuangao
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

Hyperbolic Trial-Division Product: An Exactly Roundable Prime Indicator and an Explicit Formula for the n-th Prime

Ni Chuangao
preprint en

Abstract

We present a prime indicator and an explicit formula for the $n$-th prime that depend only on elementary functions. The central object is the **hyperbolic divisibility kernel** $$ D_\beta(n,d)=\frac{e^{-\beta r}+e^{-\beta(d-r)}}{1+e^{-\beta d}}=\frac{\cosh\big(\beta(\tfrac d2-r)\big)}{\cosh(\beta d/2)},\qquad r=n\bmod d, $$ which is the normalized two-point function of the wrapped exponential kernel on the circle (i.e., the Green's function of the operator $-\partial_x^2+\beta^2$). We give two independent derivations (geometric series and spectral decomposition). Embedding this kernel into the trial-division product $$ T_\beta(n)=\prod_{d}\big(1-D_\beta(n,d)\big),\qquad I_{\mathrm{hyp}}(n)=\Big\lfloor T_\beta(n)+\tfrac12\Big\rfloor, $$ and choosing the product domain and temperature $\beta$ appropriately, we obtain **$I_{\mathrm{hyp}}(n)=\mathbf 1_{n\text{ prime}}$ exactly for all $n\ge2$** (Theorems 4.2, 4.3): the vanishing on the composite branch is a **syntactic fact** (when $r=0$, numerator and denominator are the same expression, IEEE division yields exactly $1$, and the factor is exactly $0$), while the rounding margin on the prime branch is an explicit constant ($\ge 7/8$). From this, via counting inversion and the explicit prime upper bound $M_2(n)=\big\lceil n(\ln(n+2)+\ln\ln(n+3))\big\rceil$, we obtain the $n$-th prime formula **free of minimization operators**: $$ p_n=\sum_{m=2}^{M_2(n)} m\left\lfloor\frac{1}{1+(S(m)-n)^2}\right\rfloor\left\lfloor\frac{1}{1+(S(m-1)-n+1)^2}\right\rfloor,\qquad S(m)=\sum_{k=2}^{m}I_{\mathrm{hyp}}(k), $$ and further give a **single self-contained formula** (Theorem 6.7) with $S$ and $I_{\mathrm{hyp}}$ fully inlined: it contains only the atoms $\{+,-,\times,\div,\exp,\ln,\sqrt{\ },\lfloor\ \rfloor\}$ and depends on no external definition other than the variable $n$. The floating-point correctness of the entire construction **requires neither cancellation control nor compensated summation**. Under the explicit computation hypothesis (H) (§5.0), we give an explicit per-factor error budget $|\widehat D-D|\le D\,u(10+10\beta d)+2^{-1072}$ (Theorem 5.2), and prove **loss damping**: on the prime branch, the per-factor perturbation is damped by the closed-form bound $\operatorname{sech}\beta^*\le\frac{1}{8\sqrt n}$ of the kernel, and the product drift (regardless of the signs of the individual factor perturbations) satisfies $$ |\widehat T-T|\ \le\ \frac{2u\,T\,(10+5\beta^*(\sqrt n+1))}{7}\ <\ 3.5\times10^{-7}\qquad(2\le n<2^{53},\ \beta=\beta^*), $$ which is far smaller than the rounding margin $\tfrac38$, so the rounding conclusion is preserved **pointwise on the entire domain** $2\le n<2^{53}$ (Theorem 5.4, Corollary 5.5). This contrasts with classical trigonometric formulas that rely on root-of-unity cancellation. We also delineate the boundary of this construction: a real exponential polynomial has only finitely many zeros on the real axis (Chebyshev system property), so a **purely hyperbolic (nonnegative kernel) mechanism can produce "support-type" data (primality) but not "phase-type" data (the Möbius sign)**—primality falls exactly within the reach of the hyperbolic world (§7.3).

Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon