3 ms·
I understand "we got tired of saying 'excluding 1'", but I still don't grasp how the product of zero primes is 1 and not 0.
by mratzloff 13y ago
I understand "we got tired of saying 'excluding 1'", but I still don't grasp how the product of zero primes is 1 and not 0.
- recursive 13y ago1 is the multiplicative identity. If you were to write a for loop calculating the product of a list of ints, what would be the initial value for the accumulator?
- jeffasinger 13y agoMultiplying 0 times is the "same" as raising something to the 0 power.
- mratzloff 13y agoOh, of course. x exp. 0 == 1. I got that he was using powers but my brain didn't equate 2 exp. 0 with how he explained it for some reason.