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
is_square_free(10)In the solver,
Open in the solveris_square_free(10)givestrue.
Related functions
- jacobi_symbol
Jacobi symbol (a/n), for an odd positive n.
- is_prime_power
Test whether a whole number is a power of a prime.
- lucas_l
The n-th Lucas number.
- is_prime
Test whether a whole number is prime.
- modular_inverse
The inverse of a whole number modulo another.
- is_coprime
Test whether two whole numbers have no common divisor above 1.