# Algorithms

 Re: Factorials Tim Craig 25-Jun-08 22:06
 Re: Factorials cp9876 24-Jun-08 13:33
 Re: Factorials Matthew Butler 24-Jun-08 13:38
 Re: Factorials cp9876 24-Jun-08 15:05
 Re: Factorials Luc Pattyn 24-Jun-08 16:02
 Re: Factorials cp9876 24-Jun-08 21:09
 Re: Factorials Luc Pattyn 25-Jun-08 0:53
 Re: Factorials cp9876 25-Jun-08 3:27
 Luc Pattyn wrote:countN tells me how many factors of n! end on digit N   OK now I see what you are doing. I'm sure you have some very clever reason for this, but it is not clear to me why you do   ```count5 += count10; if (count5 != 0) { result = (result * rightmostNonzeroInFactorial(count5)) % 10; count2 -= count5; }```   and not what I would expect:   ```if (count5 != 0) { result = (result * rightmostNonzeroInFactorial(count5)) % 10; count2 -= count5; } if (count10 != 0) { result = (result * rightmostNonzeroInFactorial(count10)) % 10; }```   Peter "Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
 Re: Factorials Luc Pattyn 25-Jun-08 3:34
 Re: Factorials cp9876 25-Jun-08 3:40
 Re: Factorials tim_one 14-Jul-08 9:37
 Re: Factorials Arash Partow 25-Jun-08 3:14
 Re: Factorials Ian Uy 25-Jun-08 7:26
 Polyline offset algorithm beko 16-Jun-08 22:59
 Re: Polyline offset algorithm Alan Balkany 17-Jun-08 5:07
 Re: Polyline offset algorithm beko 17-Jun-08 5:43
 Re: Polyline offset algorithm CPallini 17-Jun-08 8:03
 Last Visit: 31-Dec-99 19:00     Last Update: 25-Nov-14 8:21 Refresh « Prev1...136137138139140141142143144145 Next »