PrimeFactors: Reword to "$_ is a prime number."

master
Jag Talon 2014-03-26 23:39:04 -04:00
parent 03d95d156f
commit 77fcd894f1
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ handle remainder => sub {
# If it has only one factor then it is a prime. Except if it's 0 or 1.
if(@factors == 1 && $_ > 1) {
$result = "The number $_ is a prime.";
$result = "$_ is a prime number.";
} else {
$result = "The prime factors of $_ are " . join(', ', @factors) . '.';
}