Metamath Proof Explorer


Theorem prmocl

Description: Closure of the primorial function. (Contributed by AV, 28-Aug-2020)

Ref Expression
Assertion prmocl N 0 # p N

Proof

Step Hyp Ref Expression
1 prmoval N 0 # p N = k = 1 N if k k 1
2 fzfid N 0 1 N Fin
3 elfznn k 1 N k
4 3 adantl N 0 k 1 N k
5 1nn 1
6 5 a1i N 0 k 1 N 1
7 4 6 ifcld N 0 k 1 N if k k 1
8 2 7 fprodnncl N 0 k = 1 N if k k 1
9 1 8 eqeltrd N 0 # p N