C Program Largest number less than N whose each digit is prime number

OUTPUT: