- 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.
- or download this
$y=shift;
for($i=2;$i<=$y;){
...
push@x,$i
}
print@{$,=x};
- or download this
$y=shift;for($i=2;$i<=$y;){next if$y%$i++;$y/=--$i;push@x,$i}print@{$,
+=x};