There are
2 (seriously, why did you even click on this?)
types of cases:
I.
The last digit is 3, 5 or 7. There are 3 choices for the ones place, 4 choices for the thousands place, 8 choices for the hundreds place, and 7 choices for the tens place. 4 * 8 * 7 * 3 = 672
II.
The last digit is 1, or 9. There are 2 choices for the ones place, 5 choices for the thousands place, 8 choices for the hundreds place, and 7 choices for the tens place. 5 * 8 * 7 * 2 = 560
Sum the two cases for an answer of:
1232