MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  df-prmo Structured version   Visualization version   Unicode version

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

In the literature, the primorial function is written as a postscript hash: 6# = 30. In contrast to prmorcht 24904, 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.)

Assertion
Ref Expression
df-prmo  |- #p  =  (
n  e.  NN0  |->  prod_ k  e.  ( 1 ... n
) if ( k  e.  Prime ,  k ,  1 ) )
Distinct variable group:    k, n

Detailed syntax breakdown of Definition df-prmo
StepHypRef Expression
1 cprmo 15735 . 2  class #p
2 vn . . 3  setvar  n
3 cn0 11292 . . 3  class  NN0
4 c1 9937 . . . . 5  class  1
52cv 1482 . . . . 5  class  n
6 cfz 12326 . . . . 5  class  ...
74, 5, 6co 6650 . . . 4  class  ( 1 ... n )
8 vk . . . . . . 7  setvar  k
98cv 1482 . . . . . 6  class  k
10 cprime 15385 . . . . . 6  class  Prime
119, 10wcel 1990 . . . . 5  wff  k  e. 
Prime
1211, 9, 4cif 4086 . . . 4  class  if ( k  e.  Prime ,  k ,  1 )
137, 12, 8cprod 14635 . . 3  class  prod_ k  e.  ( 1 ... n
) if ( k  e.  Prime ,  k ,  1 )
142, 3, 13cmpt 4729 . 2  class  ( n  e.  NN0  |->  prod_ k  e.  ( 1 ... n
) if ( k  e.  Prime ,  k ,  1 ) )
151, 14wceq 1483 1  wff #p  =  (
n  e.  NN0  |->  prod_ k  e.  ( 1 ... n
) if ( k  e.  Prime ,  k ,  1 ) )
Colors of variables: wff setvar class
This definition is referenced by:  prmoval  15737
  Copyright terms: Public domain W3C validator