langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,3 @@
|
|||
function Get-Factor ($a) {
|
||||
1..$a | Where-Object { $a % $_ -eq 0 }
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
function Get-Factor ($a) {
|
||||
1..[Math]::Sqrt($a) `
|
||||
| Where-Object { $a % $_ -eq 0 } `
|
||||
| ForEach-Object { $_; $a / $_ } `
|
||||
| Sort-Object -Unique
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue