Any Better logic for this problem..

Ganapathy Subramanium sganapathy.subramanium at gmail.com
Thu Jun 9 04:31:07 EDT 2011


Hi Guru's,

I'm working on a solution to find the prime factor of the number
This part of the code works.. http://www.pastie.org/2041584

When the number gets bigger, the range cannot iterate through bigger number
and it does not work.

When I googled , I came across creating our own range function to solve
this. I was just wondering if there was a better algorithm to get the prime
numbers / prime factors of a long number?


Any inputs is highly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110609/d1b4b8fb/attachment.html>


More information about the Python-list mailing list