eval or exit print "$n is not prime.\n" for <@{$"=',',[$n=pop]}-1/(1${\("/{@{[2..1+$n/2]}}"x2)})|0>,' print "$n is prime.\n"'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Testing for prime-ness, the silly way
by hopes (Friar) on Sep 28, 2002 at 15:01 UTC |