diff options
Diffstat (limited to 'factors/factorize.go')
| -rw-r--r-- | factors/factorize.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/factors/factorize.go b/factors/factorize.go index 2f7368a..8e82b16 100644 --- a/factors/factorize.go +++ b/factors/factorize.go @@ -11,14 +11,14 @@ func Factors(n uint) []uint { factors := []uint{1} for p, e := range primeFactorization.exponents { - next_factors := make([]uint, 0, len(factors) * int(e)) + next_factors := make([]uint, 0, len(factors)*int(e)) for _, factor := range factors { for i := uint(0); i <= e; i++ { multiplier := uint(1) for j := uint(0); j < i; j++ { multiplier *= p } - next_factors = append(next_factors, factor * multiplier) + next_factors = append(next_factors, factor*multiplier) } } factors = next_factors |
