- N is a positive integer having exactly 5 distinct digits from 1 to 9 inclusively.
- Two of the digits of N are perfect squares.
- Two of the digits of N are prime numbers.
- One of the digits in N is neither a prime number nor a perfect square.
- Numerical value of third digit from the left is precisely twice that of the fifth digit.
- The fourth digit from the left is precisely 6 greater than the second digit.
- Reading from the left, the last digit is precisely 3 less than the first digit.
Determine the value of N.