From: Roelof Wobben Date: 2012-09-29T21:27:27+09:00 Subject: Re: ibonacci sequence problem --_96d8f487-f1f2-441b-8cbe-71319cfe8cc7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Sat=2C 29 Sep 2012 21:18:16 +0900 > From: lists@ruby-forum.com > Subject: Re: ibonacci sequence problem > To: ruby-talk@ruby-lang.org >=20 > Roelof Wobben wrote in post #1078000: > > Image I have > > this situation.Look for a number which is prime and can be divided by 2= . >=20 > Is this really the task? Because the only even prime number is 2=20 > (obviously). >=20 > --=20 > Posted via http://www.ruby-forum.com/. > No=2C It was a simplerer made task.The task is : What is the largest pri= me factor of the number 600851475143 So I can check if 600851475143 can be= dived by a number ? 600851475143%^number =3D=3D 0 if that not true im m= y opinion there is no need to look if the number is a prime. if that's true= then I have to check if that number is a prime. I found on internet that I= can check number.if_prime? Roelof = --_96d8f487-f1f2-441b-8cbe-71319cfe8cc7_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

 =3B
>=3B Date: Sat= =2C 29 Sep 2012 21:18:16 +0900
>=3B From: lists@ruby-forum.com
>= =3B Subject: Re: ibonacci sequence problem
>=3B To: ruby-talk@ruby-lan= g.org
>=3B
>=3B Roelof Wobben wrote in post #1078000:
>=3B = >=3B Image I have
>=3B >=3B this situation.Look for a number which= is prime and can be divided by 2.
>=3B
>=3B Is this really the = task? Because the only even prime number is 2
>=3B (obviously).
&g= t=3B
>=3B --
>=3B Posted via http://www.ruby-forum.com/.
>= =3B
 =3B
No=2C It was a simplerer made task.
=
The task is : What is the largest prime factor of the number 600851475= 143
 =3B
So I can check if 600851475143 can be div= ed by a number ? =3B =3B 600851475143%^number =3D=3D 0
i= f that not true =3B im my opinion there is no need to look if the numbe= r is a prime.
if that's true then I have to check if that number= is a prime.
I found on internet that I can check number.if_prim= e?
 =3B
Roelof

 =3B
=
= --_96d8f487-f1f2-441b-8cbe-71319cfe8cc7_--