##
Check if elements of array can be made equal by multiplying given prime numbers
February 20, 2017

Given an array of integers and an array of prime numbers. The task is to find if it is possible to make all the elements of integer array equal by multiplying one or more elements from prime given array of prime numbers. Examples: Input : arr[] = {50, 200} prime[] = {2, 3} Output :… Read More »