numtheory(deprecated)
issqrfree
test if integer is square free
Calling Sequence
Parameters
Description
Examples
issqrfree(n)
n
-
integer
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[IsSquareFree] instead.
The function issqrfree(n) returns true if n is square free, and false otherwise. The integer n is square free if it is not divisible by a perfect square.
The command with(numtheory,issqrfree) allows the use of the abbreviated form of this command.
with⁡numtheory:
ifactor⁡20
22⁢5
issqrfree⁡20
false
ifactor⁡21
3⁢7
issqrfree⁡21
true
See Also
ifactor
NumberTheory[IsSquareFree]
Download Help Document