| python Programming Glossary: divisorsWhat is the best way to get all the divisors of a number? http://stackoverflow.com/questions/171765/what-is-the-best-way-to-get-all-the-divisors-of-a-number  is the best way to get all the divisors of a number  Here's the very dumb way def divisorGenerator n.. thanks to Greg Hewgill and his smart way Calculating all divisors of 100000000 took 0.01s with his way against the 39s that the.. of a given number doesn't need to calculate all the divisors. It's a different problem if you think it's not then look for.. 
 Finding the nth prime number using Python http://stackoverflow.com/questions/3885937/finding-the-nth-prime-number-using-python  You might think about which integers you need to check as divisors certainly you don ™t need to go beyond the candidate you are.. 
 triangle numbers in python http://stackoverflow.com/questions/571488/triangle-numbers-in-python  of the first triangle number to have over five hundred divisors A triangle number is a number in the sequence of the sum of.. you know all prime factors of n how to calculate number of divisors of n If you don't want to change your algorithm then you can.. 
 Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell http://stackoverflow.com/questions/6964392/speed-comparison-with-project-euler-c-vs-python-vs-erlang-vs-haskell  I search for the first triangle number with more than 1000 divisors instead of 500 as stated in the original problem. The result.. 
 |