아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Square-Free Numbers

시간 제한2초메모리 제한1024 MB

요약
각 N에 대해 곱이 N이 되는 제곱인수가 없는 인수의 최소 개수를 출력한다.
난이도

보통10점 중 4점

유형
수학, 정수론
정답자
아직 제출이 없습니다

문제

But wait, I haven't finished -- each of the factors that you find must be square-free. A square-free number, however you factor it, won't have any factor that is a perfect square. Of course, you can never include 1 as a factor.

입력

The first line of input is the number of test cases T.

The next T lines each have an integer N.

출력

For each testcase, output the smallest number of square-free factors.

제한

  • T ≤ 104
  • 2 ≤ N ≤ 106

힌트

6 can be factored as just 6 (further factorable as 2x3 only, and hence square free), a single factor. 8 has to be factored as 2x2x2 so that all factors are square-free.

예제1

  1. 예제 1

    입력
    2
    6
    8
    
    예상 출력
    1
    3