Help for this page

Select Code to Download


  1. or download this
      ^                # match beginning of string
        (              # begin first stored group
    ...
        )              # end storing first group
        \1+            # match the first group, repeated one or more times
    +.
      $                # match end of string.
    
  2. or download this
    $y=shift;
    for($i=2;$i<=$y;){
    ...
        push@x,$i
    }
    print@{$,=x};
    
  3. or download this
    $y=shift;for($i=2;$i<=$y;){next if$y%$i++;$y/=--$i;push@x,$i}print@{$,
    +=x};