1. Introduction
In the teaching of calculus and real analysis, the constants
are typically introduced via power series, limits of elementary functions, or geometric interpretations. On the other hand, in elementary number theory courses one introduces the set of prime numbers
together with functions such as
(the prime counting function) and sequences such as the Fibonacci sequence.
The central message of this work is that these two apparently separate narratives can be conceptually connected in a very appealing way: it is possible to define or approximate classical constants using only prime numbers, either in the form of limits, infinite products, or sequences indexed by primes. Although some of these constructions are not competitive as numerical methods, they are very valuable as pedagogical tools to illustrate the bridge between the discrete (primes) and the continuous (limits, derivatives, integrals).
In the following sections we present:
limits that generate e from the distribution of primes,
products over primes that lead to ,
the golden ratio obtained through Fibonacci and Lucas numbers evaluated at prime indices,
and a pedagogical discussion with suggested activities.
Standard references for analytic number theory and the distribution of primes, including the Prime Number Theorem and Euler products, are Apostol [
1] and Hardy–Wright [
2]; Finch’s monograph [
3] surveys many classical constants and their representations from a unified perspective.
2. Preliminaries: Primes and Classical Functions
We denote by
the
n-th prime number and by
the prime-counting function:
The
Prime Number Theorem states that
and, equivalently,
We do not use deep technical versions of this result; we only need its most basic asymptotic form, which is enough to justify the limits that appear in the following sections (see, for instance, [
1,
4]).
We also introduce the Chebyshev functions
For the pedagogical purposes of this article it suffices to know that
as
, and that the identity
(for
) links primes directly to series over the integers.
3. The Constant e from Prime Numbers
3.1. A Conceptual Construction:
Let
denote the
n-th prime. Consider the sequence
Taking logarithms, we obtain
By the Prime Number Theorem,
, so that
Therefore
and, consequently:
This construction is conceptually elegant: it defines
e as the limit of an expression that involves only integers and the positions of the primes. However, the convergence is extremely slow.
Table 1 shows some illustrative values, where we can see that even for
the value is far from
e.
Here . The table is useful to discuss in class the difference between existence of a limit and speed of convergence.
3.2. A Product Construction with Faster Decay
Proposition 1 shows that e is “encoded” in the distribution of primes. However, it is natural to look for expressions that mimic the structure of products over primes that appear in and that also converge relatively fast.
Let
which is convergent because it is a subseries of
. We define, purely algebraically,
Rewriting this as a product, we obtain
This suggests the sequence of partial products
where
is the
N-th prime. Then we have:
Proposition 2.
With the above notation,
Moreover, the error in the exponent behaves, at first order, like
for some constant , so that the convergence is of order .
Table 2 shows some typical values (assuming
), where we can observe a faster convergence than in
Table 1.
These tables allow us to compare, in the classroom, two different ways of “extracting” the same constant e from prime arithmetic.
4. The Constant from Products over Primes
The case of
is more classical and is based on the value of the Riemann zeta function at
:
On the other hand, Euler’s product formula gives (for
)
so that at
we obtain
This allows us to write:
If we define the partial product
we obtain a monotonically increasing approximation to
.
Table 3 illustrates some values for the first few primes.
Although the convergence is not immediate either, it is significantly better than in
Table 1, and the comparison is quite instructive for students.
5. The Golden Ratio via Primes, Fibonacci, and Lucas
The Fibonacci sequence
(see, e.g., [
5]) is defined by
and the golden ratio is the limit
Binet’s formula gives
In particular,
.
Let be the n-th prime. We can use primes as a sampling tool:
Proposition 4.
The following limits hold:
(Idea of the proof). Since
as
, we simply note that
is just the same convergence as
restricted to a subsequence (any subsequence of a convergent sequence converges to the same limit). For the second identity, from Binet’s formula we have
so that
□
An analogous construction can be carried out with the Lucas sequence
, defined by
,
,
, which satisfies
(see also [
5]):
Proposition 5.
Let be the n-th prime. Then
In these constructions, primes do not directly generate a product or a series, but they act as a selection tool: we keep only the Fibonacci or Lucas terms at prime indices and, nevertheless, the golden ratio reappears as a limit.
5.1. Combining and with Products over Primes
A different approach, closer in spirit to Proposition 3, is to use the identity
If we define
as in Proposition 3, that is,
then
In compact notation:
Table 4 illustrates some values of
obtained by truncating the product in
at the first primes.
This example combines three didactic ideas:
6. Pedagogical Discussion and Suggested Activities
In this section we outline some ways to use the previous constructions in the classroom.
6.1. Comparing Rates of Convergence
A first activity is to ask students to compare numerically different expressions for the same constant. For example, for e:
the classical definition ;
the limit ;
the partial product .
how fast each expression approaches e,
how many operations each method requires,
what information about primes is needed to evaluate them.
A second activity consists in doing the same for and :
6.2. A Bridge Between Number Theory and Analysis
Another interesting pedagogical angle is to use these examples to tell a unified story:
Primes appear as the fundamental building blocks of arithmetic.
The zeta function, Euler products, and the Prime Number Theorem show how they are related to series and limits.
Analytical constants such as e, , and can be viewed as continuous shadows of discrete structures.
Depending on the level of the course, one can adjust the rigor:
6.3. Open Explorations
Finally, these constructions can lead to small guided “research projects”. For example:
Define new constants by combining products over primes (for instance, inspired by the twin prime constant) and study their numerical convergence.
Investigate what happens if one replaces the sequence of all natural numbers by a sequence indexed only by primes in other known limits.
Explore variants of Propositions 4 and 5 by restricting the indices to special subsets of primes (for example, twin primes, Sophie Germain primes, etc.).
7. Conclusions
We have shown that it is possible to construct classical constants such as e, , and from expressions involving only primes, either via limits, products, or sequences indexed by primes. Although some of these formulations are not efficient for numerical computation, they provide fertile ground for pedagogical activities connecting number theory and analysis.
In particular, the proposed viewpoint can help to:
visualize the Prime Number Theorem as a description of the rate at which certain limits approach e,
reinterpret Euler’s product for as a machine that generates from primes,
and see the golden ratio as a robust limit that persists even when we sample the Fibonacci and Lucas sequences only at prime indices.
We believe that these ideas can serve as the basis for didactic material, lecture notes, or expository articles that motivate students by showing the deep interplay between discrete objects (primes, recursive sequences) and analytic constants, in the spirit of [
3,
5].
References
- T. M. Apostol, Introduction to Analytic Number Theory, Springer, 1976.
- G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford University Press, 2008.
- S. R. Finch, Mathematical Constants, Cambridge University Press, 2003.
- B. Mazur and W. Stein, Prime Numbers and the Riemann Hypothesis, Cambridge University Press, 2016.
- T. Koshy, Fibonacci and Lucas Numbers with Applications, 2nd ed., John Wiley & Sons, 2019.
Table 1.
Approximation of e via
Table 1.
Approximation of e via
| n |
|
|
|
| 10 |
29 |
|
|
| 100 |
541 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 2.
Approximation of e via the partial product
Table 2.
Approximation of e via the partial product
| N |
|
|
|
| 1 |
2 |
|
|
| 2 |
3 |
|
|
| 3 |
5 |
|
|
| 5 |
11 |
|
|
| 10 |
29 |
|
|
| 20 |
71 |
|
|
| 50 |
229 |
|
|
| 100 |
541 |
|
|
Table 3.
Approximation of via partial products over primes
Table 3.
Approximation of via partial products over primes
| Number of primes |
|
|
| 1 () |
|
|
| 2 () |
|
|
| 3 () |
|
|
| 5 () |
|
|
| 10 () |
|
|
| 20 () |
|
|
| 30 () |
|
|
Table 4.
Approximation of via
Table 4.
Approximation of via
| Number of primes |
|
|
| 1 () |
|
|
| 2 () |
|
|
| 3 () |
|
|
| 5 () |
|
|
| 10 () |
|
|
| 20 () |
|
|
| 30 () |
|
|
|
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).