[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Prime Numbers



On Mon, Aug 16, 1999 at 05:48:06PM +0000, Bart Lateur wrote:
>  - Try to divide by all primes found so far (except 1).
> 

Which is no problem, since 1 isn't prime anyway.


>  - Apart from 2, you needn't test any even numbers.
> 

Also, you don't need to divide by any even numbers.  An even number times
any integer is always even.


Ronald

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org