<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#ffffff" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 13px;">
<div style=""><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; ">&quot;Did you test the program? That is one way to tell whether it works perfectly. What you showed above will do one visible thing - it will print &quot;Don't forget
 to consider primes 2, 3, 5, and 7\n&quot;. The rest is a somewhat confusing collection of function definitions and comments. You never call the functions so nothing else will happen.</span></div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div><br>
As Alan said - research prime factors to see how others approach it.<br>
<blockquote type="cite">
<div style="direction:ltr; font-family:Tahoma; color:rgb(0,0,0); font-size:13px">
<div style=""><br>
</div>
<div style="">My current reasoning was something of this sort: &nbsp;Find all the factors of a number, then reduce them to just the prime factors
</div>
</div>
</blockquote>
<br>
Very inefficient. IMHO the proper way is to generate a list of all the prime numbers up to the square root of 600851475143, then test each (starting with the largest and working down) till you discover a factor. That then is the answer.<br>
<br>
There are many published algorithms for generating primes. <br>
<br>
<blockquote type="cite">
<div style="direction:ltr; font-family:Tahoma; color:rgb(0,0,0); font-size:13px">
<div style="">and you can then multiply them together to get that number thus having the prime factors. &nbsp;I need a lot of help haha. &nbsp;Thanks in advance everyone. &nbsp;If anyone has a good resource to point me to other than the open book project and dive into python
 it would be much appreciated. &nbsp;Would it be useful for me to buy a book, and if so what are some easily accessible ones? &nbsp;I feel dive into python is just too advanced for me. &nbsp;I understand a lot of the teachings, but the examples seem unwieldy and esoteric.&nbsp;
<br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Bob Gailer
&quot;</pre>
<pre class="moz-signature" cols="72"><br></pre>
<pre class="moz-signature" cols="72">Yeah, thanks everyone for the comments.  I will follow your advice Bob.  I didn't call the</pre>
<pre class="moz-signature" cols="72">functions in the program because I was calling them myself in the interpreter after running it.  I </pre>
<pre class="moz-signature" cols="72">don't know if that is the way everyone else programs, but I just write it in idle and save it and run</pre>
<pre class="moz-signature" cols="72">it over and over making sure it is doing what I want</pre>
</div>
</div>
</div>
</body>
</html>