in reply to RE (tilly) 3: The Big Test
in thread The Big Test

Actually, I prefer to test a number for even-ness using the same concept: Check the last digit, er... bit:
print "Odd" if $_ & 1; print "Even" if not $_ & 1;

Replies are listed 'Best First'.
RE: RE: RE (tilly) 3: The Big Test
by japhy (Canon) on Oct 17, 2000 at 20:48 UTC
    Yes, I use that too (it's been benchmarked as the fastest).

    $_="goto+F.print+chop;\n=yhpaj";F1:eval