let p be Nat; :: thesis: for n0, m0 being non zero Nat st p is prime holds
p |-count (n0 gcd m0) = min ((p |-count n0),(p |-count m0))

let n0, m0 be non zero Nat; :: thesis: ( p is prime implies p |-count (n0 gcd m0) = min ((p |-count n0),(p |-count m0)) )
reconsider h9 = n0 gcd m0 as non zero Nat by INT_2:5;
assume A1: p is prime ; :: thesis: p |-count (n0 gcd m0) = min ((p |-count n0),(p |-count m0))
then reconsider p9 = p as Prime ;
h9 divides n0 by INT_2:def 2;
then A2: p9 |-count h9 <= p9 |-count n0 by NAT_3:30;
h9 divides m0 by INT_2:def 2;
then A3: p9 |-count h9 <= p9 |-count m0 by NAT_3:30;
per cases ( p |-count n0 <= p |-count m0 or not p |-count n0 <= p |-count m0 ) ;
end;