The QNFO familyQNFOQWAVq08PapersAsk
QNFO Papers

Quick read · plain language

A New Way to Test if a Number is Prime

A plain-language version of “Bruhat‑Tits Tree Return Probability as a Deterministic Indicator of Primality”

2 min readNo jargon, no mathematicsNumbers & p-adics

The short version

This paper proposes a way to tell if a number is prime by studying random walks on special graphs. The method would give a definite yes or no answer, unlike current tests that rely on chance.

Why this matters

Computer security needs large prime numbers. Banks and websites use them to protect data. Today, computers test if a number is prime using methods that might make mistakes. They run many rounds of checking to make the chance of error very small. Each round takes time. A wrong answer could break security. The paper seeks a perfect test with no chance of error.

The core idea

The paper turns a number into a shape made of points and lines. This shape comes from a special tree-like graph. Each point in this tree connects to three neighbors. The paper looks at what happens when you fold this tree using the number. If the number is prime, the folded shape becomes a tiny loop of two points. If the number is composite, the folded shape stays an endless tree.

What was measured

The paper studies a random walk on the folded shape. Imagine a person walking from point to point, picking each next point by chance. The paper asks: what is the chance of being back at the start after two steps? For a prime number, this chance is exactly one. The walk always returns. For a composite number, this chance is lower. The paper sets a cut-off at above nineteen-twentieths to decide if a number is prime.

What the paper does not show

The paper does not prove all of its starting claims. It assumes the folded shape for primes is always the tiny loop. It assumes the folded shape for composites is always the endless tree. It also assumes a known formula for random walks on trees without proving it here. The paper notes that if these assumptions fail, the test might fail too. The method has not been built or tested in real computer code. The speed claim rests on how hard it is to check a property of a matrix, but this step is not worked out fully.

Words used here

composite
a whole number made by multiplying two smaller whole numbers, neither of them one
prime
a whole number that cannot be split into smaller whole number factors, like seven
random walk
a path where each step is chosen by chance, like flipping a coin to go left or right
spectral radius
a single number that captures how fast a random walk spreads out on a graph

Learn more in plain language

This plain-language version was written by an AI model from the text of the paper and checked against plain-language rules: everyday words, no mathematics, no unexplained names. It leaves details out and can still be wrong; the paper is the source of record. To report a problem, open the paper, select the passage and choose Report.

For specialists: the technical digest, quoted from the paper

In the paper's words

Primality testing underlies RSA, Diffie–Hellman, and elliptic‑curve cryptography, yet widely deployed algorithms such as Miller–Rabin remain probabilistic and require several random bases to achieve negligible error. The gap is a lack of a deterministic, constant‑time certificate that can be evaluated with elementary arithmetic. We encode an integer N as an automorphism of the p = 2 Bruhat–Tits tree T₂, construct the quotient graph G_N, and analyse the simple random walk on G_N.

The abstract, verbatim, and its opening sentence is the claim. Every line below is quoted from the text.

Numbers it reports

  1. $N$ Structure of $\mathcal{G}_{N}$ $P_{N}(2)$ (computed) Decision (threshold $0.95$) $7$ (prime) 2‑vertex cycle $1.00000000$ Prime $15$ (composite) infinite $3$‑regular tree $0.88888889$ Composite $31$ (prime) 2‑vertex cycle $1.00000000$ Prime $21$ (composite) infinite $3$‑regular tree $0.88888889$ Composite The numerical values $1$ and $8/9$ are exact; the decimal expansions are shown for readability.

    from 5. Results Applying the analysis to concrete integers yields the following table (derived directly from Section 4):
  2. Writing $\rho$ as a function of $p$, $$ \rho(p)=\frac{2\sqrt{p}}{p+1}. \tag{4} $$ The derivative with respect to $p$ (treated as a continuous variable for sensitivity analysis) is $$ \frac{d\rho}{dp} = \frac{2}{p+1}\cdot\frac{1}{2\sqrt{p}} -\frac{2\sqrt{p}}{(p+1)^{2}} = \frac{1}{(p+1)\sqrt{p}}-\frac{2\sqrt{p}}{(p+1)^{2}} . \tag{5} $$ Evaluating (5) at $p=2$: $$ \frac{d\rho}{dp}\Big|_{p=2} = \frac{1}{3\sqrt{2}}-\frac{2\sqrt{2}}{9} = \frac{1}{4.24264069}-\frac{2.82842712}{9} \approx 0.23570226-0.31426968 \approx -0.07856742 . $$ Thus a unit increase in $p$ lowers $\rho$ by roughly $7.9\times10^{-2}$, confirming that the spectral gap shrinks as the branching factor grows.

    from 2. Sensitivity of $\rho$ and $P(2)$ to the prime parameter $p$
  3. Taking $c=1$ as a conservative projection (no source provides a tighter bound), a depth $D=6$—the depth used in the QNFO spectral study [9]—yields an error bound of $1/6\approx0.1667$, which is well below the deterministic gap $1/9$ for $p=2$.

    from 3. Worked example: truncation depth and error bound
  4. Assuming a linear boundary‑effect error model $|P^{(D)}(2)-P_{\text{comp}}(2)|\le c/D$ with $c=1$ (a conservative projection), a depth $D=6$—the depth used in the QNFO analysis [9, § 4.1]—produces an error bound $1/6\approx0.1667$, well below the deterministic gap $1/9\approx0.1111$ for $p=2$.

    from 2. Effect of finite‑depth truncation
  5. Hence the decision threshold $0.95$ remains safe under truncation at $D\ge6$.

    from 2. Effect of finite‑depth truncation
  6. Parameter Variation Impact on $P_{\text{comp}}(2)$ Impact on gap $p$ (prime) Increase from $2$ to $3$ $8/9\to3/4$ Gap widens from $1/9$ to $1/4$ Truncation depth $D$ Decrease to $4$ Error $\le 0.25$ Still below $0.95$ threshold Quotient length $L$ (finite collapse) $L=4$ $P(2)=1/2$ Gap increases Automorphism class General colligation maps No change (degree fixed) Gap unchanged These checks confirm that the two‑step return‑probability gap is stable under realistic modelling choices, and that the decision rule $P_{N}(2)\gt 0.95$ remains valid for the $p=2$ case and even more conservative for larger primes.

    from 6. Summary of robustness

How it is done

  1. We derive these numbers from the tree’s valency, the standard spectral‑radius formula for regular trees, and the structural collapse of the quotient.

    from Abstract
  2. This paper derives the quantitative gap between the two cases, establishes a concrete decision threshold, and outlines the engineering steps required to turn the theory into a practical algorithm.

    from 1. Introduction Large‑scale cryptographic protocols such as RSA, Diffie–Hellman, and elliptic‑curve schemes require the generation of large prime numbers. Current practice relies on probabilistic primality tests (e.g., Miller–Rabin) that, while fast, only guarantee correctness with a tunable error probability; achieving a negligible failure rate demands multiple random bases, increasing both computation time and the theoretical attack surface. For a financial institution generating RSA keys, each additional Miller–Rabin round adds milliseconds of latency and leaves a non‑zero probability that a composite modulus could be mistakenly accepted, potentially compromising security.
  3. In the $p$‑adic AdS/CFT correspondence the tree plays the role of a discrete bulk geometry.

    from 2. Background and Related Work The Bruhat–Tits tree $\mathcal{T}_{p}$ is a regular infinite graph that encodes the lattice structure of $\mathrm{GL}_{2}(\mathbb{Q}_{p})$; each vertex has a valency equal to the number of its neighbours [1, § Conventions on graphs and walks]. For $p=2$ the tree is $3$‑regular, a fact used throughout our analysis.
  4. For a $d$‑regular infinite tree the spectral radius of the simple random walk transition matrix is $$ \rho = \frac{2\sqrt{d-1}}{d}. $$ Substituting $d=3$: $$ \rho = \frac{2\sqrt{3-1}}{3} = \frac{2\sqrt{2}}{3}. $$ We compute the numerical value step by step: $\sqrt{2}=1.41421356\ldots$ $2\sqrt{2}=2\times1.41421356=2.82842712\ldots$ $\rho = 2.82842712/3 = 0.94280904\ldots$ Thus $$ \rho = 0.94280904\ldots $$

    from 4.1 Spectral radius computation

What would falsify it

  1. If validated, the method would replace probabilistic tests with a single‑step spectral‑geometric certificate, eliminating residual error and simplifying key‑generation pipelines.

    from Abstract
  2. Critical discussion of assumptions, falsifiability, and practical deployment pathways (Sections 6–8).

    from 1. Introduction Large‑scale cryptographic protocols such as RSA, Diffie–Hellman, and elliptic‑curve schemes require the generation of large prime numbers. Current practice relies on probabilistic primality tests (e.g., Miller–Rabin) that, while fast, only guarantee correctness with a tunable error probability; achieving a negligible failure rate demands multiple random bases, increasing both computation time and the theoretical attack surface. For a financial institution generating RSA keys, each additional Miller–Rabin round adds milliseconds of latency and leaves a non‑zero probability that a composite modulus could be mistakenly accepted, potentially compromising security.
  3. In this section we deepen the quantitative backbone of the deterministic test by (i) deriving the spectral radius from first‑principles on a regular tree, (ii) analysing the sensitivity of the two‑step return probability to the prime‑parameter $p$, (iii) presenting explicit worked examples for $p=2$ (the case used in the main text) and for the next smallest odd prime $p=3$, and (iv) relating these calculations to several foundational results in the literature that have not yet been cited.

    from 6. Discussion

Where the claim stops

  1. In this section we deepen the quantitative backbone of the deterministic test by (i) deriving the spectral radius from first‑principles on a regular tree, (ii) analysing the sensitivity of the two‑step return probability to the prime‑parameter $p$, (iii) presenting explicit worked examples for $p=2$ (the case used in the main text) and for the next smallest odd prime $p=3$, and (iv) relating these calculations to several foundational results in the literature that have not yet been cited.

    from 6. Discussion
  2. The existence of such a Weyl transformation shows that the tree’s degree remains invariant under non‑trivial geometric manipulations, reinforcing the robustness of the spectral‑radius formula employed in Assumption 3.

    from 8. Conclusion
  3. Assuming (as a projection) that transport time scales linearly with depth $D$, a depth $D\ge6$ would keep boundary effects below the deterministic gap.

    from 8. Conclusion

Where to read

  1. Abstract183 words · 1 min
  2. 1. Introduction Large‑scale cryptographic protocols such as RSA, Diffie–Hellman, and elliptic‑curve schemes require the generation of large prime numbers. Current practice relies on probabilistic primality tests (e.g., Miller–Rabin) that, while fast, only guarantee correctness with a tunable error probability; achieving a negligible failure rate demands multiple random bases, increasing both computation time and the theoretical attack surface. For a financial institution generating RSA keys, each additional Miller–Rabin round adds milliseconds of latency and leaves a non‑zero probability that a composite modulus could be mistakenly accepted, potentially compromising security.246 words · 1 min
  3. 2. Background and Related Work The Bruhat–Tits tree $\mathcal{T}_{p}$ is a regular infinite graph that encodes the lattice structure of $\mathrm{GL}_{2}(\mathbb{Q}_{p})$; each vertex has a valency equal to the number of its neighbours [1, § Conventions on graphs and walks]. For $p=2$ the tree is $3$‑regular, a fact used throughout our analysis.252 words · 1 min
  4. 3. Methods266 words · 1 min
  5. 4. Analysis250 words · 1 min
  6. 5. Results Applying the analysis to concrete integers yields the following table (derived directly from Section 4):61 words · 1 min
  7. 6. Discussion972 words · 4 min
  8. 7. Practical Implications and Engineering Pathways622 words · 3 min
  9. 8. Conclusion455 words · 2 min
  10. Provenance and AI Involvement225 words · 1 min

Read from the paper itself: 32 sections, 3,681 words. Nothing in this digest is written by a model; a line that is not a sentence of the paper is not shown. Have a specific question? Ask this paper.

The full text · Ask the whole corpus