Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        @p = ();
    }
    print $_, "\n" foreach @a;
    
  2. or download this
    $_ = 1 x shift;
    while( /^(11+?)\1+$/ ) {
    ...
        $_= 1 x ( length() / length $1 ) 
    }
    print length;
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
        print $y, "\n";
        redo;
    }
    
  4. or download this
    perl -le '$x=shift; for($y=2; $y<=$x; $y++) { next if $x%$y; $x/=$y; p
    +rint $y; redo }' 7