Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.39 KB | None | 0 0
  1.  19     while ( $divisor > 1  ) {
  2.  20         if ( $current_candidate % $divisor == 0) {  #
  3.  21             #print "$current_candidate mod $divisor is ";
  4.  22             #print $current_candidate % $divisor;
  5.  23             $isprime=1;
  6.  24             last ;
  7.  25         }
  8.  26         if ($isprime == 1)  {
  9.  27             last;
  10.  28         }
  11.  29         $divisor = $divisor - 2;
  12.  30     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement