[Tutor] Finding prime numbers

Boykie Mackay boykie.mackay at gmail.com
Wed Sep 19 18:22:07 CEST 2007


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



More information about the Tutor mailing list