# Prime factorization of an integer (factor_integer)

Prime factorization of a whole number, as a list of prime and exponent pairs.

## How to write it

### factor_integer(n)

**n**

A whole number. Takes a whole number.

## Examples

- $\displaystyle 60 = \begin{pmatrix} 2 & 2 \\ 3 & 1 \\ 5 & 1 \end{pmatrix}$

  `factor_integer(60)`

  In the solver, `factor_integer(60)` gives `[[2, 2], [3, 1], [5, 1]]`.

  [Open in the solver](https://hilberon.com/?q=factor_integer%2860%29)

## Related functions

- [integer_exponent](https://hilberon.com/library/integer_exponent)

  The exponent of a prime in a whole number.
- [integer_partitions](https://hilberon.com/library/integer_partitions)

  All the ways to write a whole number as a sum of positive whole numbers.
- [fibonacci](https://hilberon.com/library/fibonacci)

  The n-th Fibonacci number, with F(1) = F(2) = 1.
- [extended_gcd](https://hilberon.com/library/extended_gcd)

  Greatest common divisor of two whole numbers with the multipliers that give it.
- [from_continued_fraction](https://hilberon.com/library/from_continued_fraction)

  The number a continued fraction stands for.
- [euler_phi](https://hilberon.com/library/euler_phi)

  Euler's totient: how many whole numbers up to n are coprime to n.

---
Source: https://hilberon.com/library/factor_integer
