Squarefree Check
Computer Mathematics
Hard
7 views
Problem Description
Print YES if n is squarefree (no prime square divides it).
Input Format
One integer n.
Official Solution
Factor n; if any prime has exponent>=2 then NO else YES.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!