[Tutor] Finding prime numbers

Michael Langford mlangford.cs03 at gtalumni.org
Wed Sep 19 18:31:15 CEST 2007


Attachments are a bad thing to send to open mailing lists in general.

In your case, the list appears to have filtered off the code. Please paste
it in inline.

          --Michael

On 9/19/07, Boykie Mackay <boykie.mackay at gmail.com> wrote:
>
> Hi Guys,
>
> Could you please look over my code 'attached' to find and print out
> prime numbers between to given values.When run it it is showing
> inaccuracies i.e printing out '49' and '95' as prime numbers.
>
> I have been through the code but can't seem to find where I may have
> gone wrong.I am sure it has to do with the algorithm to find the prime
> numbers as the function fails it's unit test.Any help or links would be
> much appreciated.
>
> Thanks,
>
> Boyks
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070919/6fb49776/attachment.htm 


More information about the Tutor mailing list