Re: [Tutor] making lists of prime numbers

2011-09-15 Thread Alan Gauld
On 15/09/11 03:01, c smith wrote: am I passing arguments from the command line correctly? Yes, although not converting to an int. this seems to count by twos (going through both 'if statements' maybe?) I thought the 'break' would send control back to the 'while' basically, is there an

Re: [Tutor] making lists of prime numbers

2011-09-15 Thread Dave Angel
On 09/14/2011 10:35 PM, Andre Engels wrote: On Thu, Sep 15, 2011 at 4:01 AM, c smithillusiontechniq...@gmail.comwrote: hi list, i am trying the MIT opencourseware assignments. one was to find the 1000th prime. since this isn't actually my homework, I modified the solution as I would like to

[Tutor] making lists of prime numbers

2011-09-14 Thread c smith
hi list, i am trying the MIT opencourseware assignments. one was to find the 1000th prime. since this isn't actually my homework, I modified the solution as I would like to collect lists of primes and non-primes up to N, also some log() ratio to one comparison. here is what I came up with on

Re: [Tutor] making lists of prime numbers

2011-09-14 Thread Andre Engels
On Thu, Sep 15, 2011 at 4:01 AM, c smith illusiontechniq...@gmail.comwrote: hi list, i am trying the MIT opencourseware assignments. one was to find the 1000th prime. since this isn't actually my homework, I modified the solution as I would like to collect lists of primes and non-primes up to