• + 2 comments

    Calculate the prime factors of gcd of the given list of elements . Then for each prime factor , Calculate the highest multiple <= k. the result would be the maximum of the above multiples generated.