Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Prime-decomposition/Wren/prime-decomposition.wren
Normal file
7
Task/Prime-decomposition/Wren/prime-decomposition.wren
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import "/big" for BigInt
|
||||
import "/fmt" for Fmt
|
||||
|
||||
var vals = [1 << 31, 1234567, 333333, 987653, 2 * 3 * 5 * 7 * 11 * 13 * 17]
|
||||
for (val in vals) {
|
||||
Fmt.print("$10d -> $n", val, BigInt.primeFactors(val))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue