Good numbers

Good numbers are considered the ones that are not 3 digits and are divisible by 7 and 23.
Given a number in an input print Yes if a number is a good number and No otherwise.
Input
Output
1610
Yes
7
No
 
To check your solution you need to sign in
Sign in to continue