Print first K distinct Moran numbers from a given array
Given an array arr[] consisting of N distinct positive integers, the task is to print the first K distinct Moran Numbers from the given array. A number N is a Moran number if N divided by the sum of its digits gives a prime number. Examples: 18, 21, 27, 42, 45 Examples: Input: arr[] = {192, 21, 18, 138, 27, 42, 45}, K = 4 Output: 21, 27, 42, 45 Exp