Given an array A of N integers. You are given Q queries of the following type:-
Two numbers are said to be coprime if the only common factor between them is 1.
Input Format:
Output Format:
Print Q space-separated integers denoting the answer to the queries.
Constraints:
1≤N,Q≤1051≤A[i]≤1031≤x≤N
Query 1:
Query 2: