Quote Originally Posted by Tony Flury View Post
You might not get the timelimit you need but my guess would be that adding things to a list at every iteration and then a separate loop to print the results as you have it will will be slow.
This is a rather short list (<=1000 elements) so I doubt this matters compared to the rest.