mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
move decl of q into loop
This commit is contained in:
1 parent
20f3fe5f32
commit
871c0f6caa
1 file changed
+1
-2
+1
-2
@@ -26,10 +26,9 @@ sub is_prime ($)
|
||||
|
||||
my $d = 2;
|
||||
my $w = 1;
|
||||
my $q;
|
||||
while (1)
|
||||
{
|
||||
$q = $n / $d;
|
||||
my $q = $n / $d;
|
||||
($n == $q * $d)
|
||||
and return 0;
|
||||
$d += $w;
|
||||
|
||||
Reference in new issue
Block a user