Yeah we need to find the biggest prime not greater than N, but why??
you need to save maximum your balloons, so we know that prime number divisor is only 1 and own number. so you can find maximum prime number 1 to N and you can save maximum your balloons, understand idea ?
If you have any doubts, Please let me know
2 Comments
Yeah we need to find the biggest prime not greater than N, but why??
ReplyDeleteyou need to save maximum your balloons, so we know that prime number divisor is only 1 and own number. so you can find maximum prime number 1 to N and you can save maximum your balloons, understand idea ?
DeleteIf you have any doubts, Please let me know