You need to specify whether digits may be repeated or not - for example is 3333 an allowable number?

I suggest thinking first about the last digit, which must be a 3, 5 or 7. Hence there are...