From: Roelof Wobben Date: 2012-10-01T00:48:18+09:00 Subject: prime numbers problem --_02f1ac9f-8c2b-42f1-99cb-f0cb11025db5_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C=20 I found out that ruby 1.9 has a prime class. So I tried this : list_primes.each { |prime| print prime=2C " "=3B break un= less prime < 90 } And I get this answer : 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 6= 7 71 73 79 83 89 97=20 That looks no good because 97 is more then 90. How can this be happen ? Roelof = --_02f1ac9f-8c2b-42f1-99cb-f0cb11025db5_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 =3BHello=2C

I found out that ruby 1.9 has a prime class.
So= I tried this : list_primes.each { |prime| print prime=2C " "=3B break unle= ss prime <=3B 90 }

And I get this answer : 2 3 5 7 11 13 17 19 23 = 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97

That looks no good = because 97 is more then 90.

How can this be happen ?

Roelof


= --_02f1ac9f-8c2b-42f1-99cb-f0cb11025db5_--