Help for this page

Select Code to Download


  1. or download this
    sub isPrime($) {
         $num = shift;
    ...
         if ($c == 1){return 1;}
         return 0;
    }
    
  2. or download this
    use 5.010;
    use strict;
    ...
            say;
        }
    }
    
  3. or download this
    use Carp qw/croak/;
    sub isPrime (_)
    ...
        }
        return 1;
    }