From: Robert Dober Date: 2006-08-02T20:26:15+09:00 Subject: Re: golfing Eratosthenes ------=_Part_69345_10768044.1154517972295 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 8/2/06, Paul Battley wrote: > > On 02/08/06, Robert Dober wrote: > > Enumerations, all the way ;) > > > > p (2..100).select{|d|!(2..d-1).find{|c|d%c=3D=3D0}} > > You can shave a byte off: > > p (2..100).reject{|d|(2..d-1).find{|c|d%c=3D=3D0}} > > Paul. > > Bummer I thaught it was the top ,-) --=20 Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_69345_10768044.1154517972295--