Find minimum GCD of all pairs in an array
Given an array arr of positive integers, the task is to find the minimum GCD possible for any pair of the given array.Examples: Input: arr[] = {1, 2, 3, 4, 5} Output: 1 Explanation: GCD(1, 2) = 1. Input: arr[] = {2, 4, 6, 8, 3} Output: 1 Naive approach: Generate all the pairs of elements and take GC