From: dblack@... Date: 2006-12-27T12:07:37+09:00 Subject: Re: Peculiar Behavior for a Newby to Undertstand Hi -- On Wed, 27 Dec 2006, Charles A Gray wrote: > Then when I enter > a=primes.new (As another respondent pointed out, you need Primes.new.) > a.show_primes(1000000,1000100) I get > 1000003 1000033 1000037 1000039 1000081 1000099 1000001 > Where is that trailing 1000001 coming from? It is not a prime number and > in fact is the lower limit. > If I enter the same methods outside of class Primes and enter > show_primes(1000000,1000100) I don't get the lower limit at the end of > the printed values. > > I am running version 1.18.4 using scite in Ubuntu. I can't duplicate the problem, I'm afraid. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)