Ray Holt wrote:
find the 1000th. prime number.
Break this down into 2 separate problems. (I assume 1 is the first prime
number)
1 - determining the next prime number
2 - repeating that 1000 times.
A while loop is a way to accomplish 2.
How do you determine the next prime number? There are many algorithms
for this - you might consult Wikipedia for ideas.
--
Bob Gailer
Chapel Hill NC
919-636-4239
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor