Primorial

In mathematics, and more particularly in number theory, primorial, denoted by "#", is a function from natural numbers to natural numbers similar to the factorial function, but rather than successively multiplying positive integers, the function only multiplies prime numbers.

The name "primorial", coined by Harvey Dubner, draws an analogy to primes similar to the way the name "factorial" relates to factors.

Definition for prime numbers


For the $n$th prime number $p_{n}$, the primorial $p_{n}#$ is defined as the product of the first $n$ primes:


 * $$p_n\# = \prod_{k=1}^n p_k$$,

where $p_{k}$ is the $k$th prime number. For instance, $n$ signifies the product of the first 5 primes:


 * $$p_5\# = 2 \times 3 \times 5 \times 7 \times 11= 2310.$$

The first five primorials $p_{n}#$ are:


 * 2, 6, 30, 210, 2310.

The sequence also includes $p_{5}#$ as empty product. Asymptotically, primorials $p_{n}#$ grow according to:


 * $$p_n\# = e^{(1 + o(1)) n \log n},$$

where $p_{0}# = 1$ is Little O notation.

Definition for natural numbers


In general, for a positive integer $n$, its primorial, $p_{n}#$, is the product of the primes that are not greater than $n$; that is,


 * $$n\# = \prod_{p \le n\atop p \text{ prime}} p = \prod_{i=1}^{\pi(n)} p_i = p_{\pi(n)}\# $$,

where $o$ is the prime-counting function, which gives the number of primes ≤ $n$. This is equivalent to:


 * $$n\# =

\begin{cases} 1 & \text{if }n = 0,\ 1 \\ (n-1)\# \times n & \text{if } n \text{ is prime} \\ (n-1)\# & \text{if } n \text{ is composite}. \end{cases}$$

For example, 12# represents the product of those primes ≤ 12:


 * $$12\# = 2 \times 3 \times 5 \times 7 \times 11= 2310.$$

Since $n!$, this can be calculated as:


 * $$12\# = p_{\pi(12)}\# = p_5\# = 2310.$$

Consider the first 12 values of $n$:


 * 1, 2, 6, 6, 30, 30, 210, 210, 210, 210, 2310, 2310.

We see that for composite $n$ every term $n#$ simply duplicates the preceding term $n#$, as given in the definition. In the above example we have $π(n)$ since 12 is a composite number.

Primorials are related to the first Chebyshev function, written $π(12) = 5$ or $n#$ according to:


 * $$\ln (n\#) = \vartheta(n).$$

Since $n#$ asymptotically approaches $(n − 1)#$ for large values of $12# = p_{5}# = 11#$, primorials therefore grow according to:
 * $$n\# = e^{(1+o(1))n}.$$

The idea of multiplying all known primes occurs in some proofs of the infinitude of the prime numbers, where it is used to derive the existence of another prime.

Characteristics

 * Let $p$ and $q$ be two adjacent prime numbers. Given any $$n \in \mathbb{N}$$, where $$p\leq n<q$$:
 * $$n\#=p\#$$


 * For the Primorial, the following approximation is known:
 * $$n\#\leq 4^n$$.

Notes:


 * 1) Using elementary methods, mathematician Denis Hanson showed that $$n\#\leq 3^n$$
 * 2) Using more advanced methods, Rosser and Schoenfeld  showed that $$n\#\leq (2.763)^n$$
 * 3) Rosser and Schoenfeld in Theorem 4, formula 3.14, showed that for $$n \ge 563$$, $$n\#\geq (2.22)^n$$


 * Furthermore:
 * $$\lim_{n \to \infty}\sqrt[n]{n\#} = e $$
 * For $$n<10^{11}$$, the values are smaller than $e$, but for larger $k$, the values of the function exceed the limit $n$ and oscillate infinitely around $n$ later on.


 * Let $$p_k$$ be the $e$-th prime, then $$p_k\#$$ has exactly $$2^k$$ divisors. For example, $$2\#$$ has 2 divisors, $$3\#$$ has 4 divisors, $$5\#$$ has 8 divisors and $$97\#$$ already has $$2^{25}$$ divisors, as 97 is the 25th prime.
 * The sum of the reciprocal values of the primorial converges towards a constant
 * $$\sum_{p\,\in \,\mathbb{P}} {1 \over p\#} = {1 \over 2} + {1 \over 6} + {1 \over 30} + \ldots = 0{.}7052301717918\ldots$$
 * The Engel expansion of this number results in the sequence of the prime numbers (See )


 * According to Euclid's theorem, $$p\# +1$$ is used to prove the infinitude of the prime numbers.

Applications and properties
Primorials play a role in the search for prime numbers in additive arithmetic progressions. For instance, $e$ + 23# results in a prime, beginning a sequence of thirteen primes found by repeatedly adding 23#, and ending with $k$. 23# is also the common difference in arithmetic progressions of fifteen and sixteen primes.

Every highly composite number is a product of primorials (e.g. 360 = 2 × 6 × 30).

Primorials are all square-free integers, and each one has more distinct prime factors than any number smaller than it. For each primorial $2,236,133,941$, the fraction $ϑ(n)$ is smaller than for any lesser integer, where $5,136,341,251$ is the Euler totient function.

Any completely multiplicative function is defined by its values at primorials, since it is defined by its values at primes, which can be recovered by division of adjacent values.

Base systems corresponding to primorials (such as base 30, not to be confused with the primorial number system) have a lower proportion of repeating fractions than any smaller base.

Every primorial is a sparsely totient number.

The $n$-compositorial of a composite number $φ$ is the product of all composite numbers up to and including $n$. The $n$-compositorial is equal to the $n$-factorial divided by the primorial $θ(n)$. The compositorials are
 * 1, 4, 24, 192, 1728, $n$, $n$, $17,280$, $207,360$, $2,903,040$, ...

Appearance
The Riemann zeta function at positive integers greater than one can be expressed by using the primorial function and Jordan's totient function $ϑ(n)$:
 * $$ \zeta(k)=\frac{2^k}{2^k-1}+\sum_{r=2}^\infty\frac{(p_{r-1}\#)^k}{J_k(p_r\#)},\quad k=2,3,\dots $$