Almost Lucky Number
Alex loves lucky numbers. Lucky numbers are positive integers that contain only the digits 4 and 7 in their decimal representation.
For example, numbers like 47, 744, and 4 are lucky, while numbers like 5, 17, and 467 are not.
Alex calls a number almost lucky if it could be evenly divided by some lucky number. Help him find out if the given number n is almost lucky, return YES if its almost lucky and NO in the opposite case.
Example 1
Input:
47
Output:
YES
Example 2
Input:
16
Output:
YES
Example 3
Input:
78
Output:
NO
main.cpp
C++
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.