H1

Is a positive integer squarefree?

Input: A positive integer in the range [1, 231)

Output: A standard true value if n is squarefree (not divisible by any perfect square >1), and a standard false value otherwise.

Examples:

210->True
1  ->True
45 ->False

Languages, by Score

Languages, by Name


Back to Hole List

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License