Metamath Proof Explorer


Definition df-prmo

Description: Define the primorial function on nonnegative integers as the product of all prime numbers less than or equal to the integer. For example, ( #p1 0 ) = 2 x. 3 x. 5 x. 7 = 2 1 0 (see ex-prmo ).

In the literature, the primorial function is written as a postscript hash: 6# = 30. In contrast to prmorcht , where the primorial function is defined by using the sequence builder ( P = seq 1 ( x. , F ) ), the more specialized definition of a product of a series is used here. (Contributed by AV, 28-Aug-2020)

Ref Expression
Assertion df-prmo #p=n0k=1nifkk1

Detailed syntax breakdown

Step Hyp Ref Expression
0 cprmo class#p
1 vn setvarn
2 cn0 class0
3 vk setvark
4 c1 class1
5 cfz class
6 1 cv setvarn
7 4 6 5 co class1n
8 3 cv setvark
9 cprime class
10 8 9 wcel wffk
11 10 8 4 cif classifkk1
12 7 11 3 cprod classk=1nifkk1
13 1 2 12 cmpt classn0k=1nifkk1
14 0 13 wceq wff#p=n0k=1nifkk1