Python | Count the array elements with factors less than or equal to the factors of given x
Given an array, the task is to count the elements of array whose factors are less than the given number x. Examples: Input: arr = [2, 12, 4, 6], x = 6 Output: 2 factors of x = 6 is [1, 2, 3] factors of arr[0] = 2 is [1] factors of arr[1] = 12 is [1, 2, 3, 4] factors of arr[2] = 4 is [1, 2] factors o