# is_square_free function

Test whether no square greater than 1 divides a whole number.

## How to write it

### is_square_free(n)

**n**

A whole number. Takes a whole number.

## Examples

- $\displaystyle \operatorname{is\_square\_free}(10) = \operatorname{true}$

  `is_square_free(10)`

  In the solver, `is_square_free(10)` gives `true`.

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

## Related functions

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

  Jacobi symbol (a/n), for an odd positive n.
- [is_prime_power](https://hilberon.com/library/is_prime_power)

  Test whether a whole number is a power of a prime.
- [lucas_l](https://hilberon.com/library/lucas_l)

  The n-th Lucas number.
- [is_prime](https://hilberon.com/library/is_prime)

  Test whether a whole number is prime.
- [modular_inverse](https://hilberon.com/library/modular_inverse)

  The inverse of a whole number modulo another.
- [is_coprime](https://hilberon.com/library/is_coprime)

  Test whether two whole numbers have no common divisor above 1.

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