Softanza
StartFrançais
Softanza
How-to · Numbers

Get all the factors (divisors) of a number

Softanza
Q(12).Factors()
#--> [ 1, 2, 3, 4, 6, 12 ]
Output
1
2
3
4
6
12

ran: printed what the recipe promises

run on 2026-10-02 22:33 inside the library at commit 0e72e2e2c; the expression carrying the promise was printed for the run · The recipe on GitHub(opens in a new tab)

The methods

stzNumber.Factors · stzNumber.PrimeFactors

See also

Words for this task: factors, divisors, divides, factorize, multiples, break into factors