in reply to Re: Simple primality testing
in thread Simple primality testing

I don't have perl6 handy, but wouldn't that fail for 2? In that case, sqrt(1) + 1 is greater then 2 so 2 is included in the range.

Replies are listed 'Best First'.
Re^3: Simple primality testing
by gaal (Parson) on Nov 23, 2005 at 06:13 UTC
    You are correct. Nice catch!