Hint for solution


#1

Try reading the Question statement a few more times and think of answer within 2-3 lines of code…also prime factors may help…