Four different digits 1–9 are required to open a safe. The first and third numbers total ten; the second number is no more than four; the third number is a prime number; the fourth number is three less than the first; and the second number is one less than the fourth.