Good numbers
Good numbers are considered the ones that are not 3 digits and are divisible by 7 and 23.
Given a positive integer in an input print
Yes
if the number is a good number and No
otherwise.Input | Output |
1610 | Yes |
7 | No |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB