Sum of all Perfect numbers lying in the range [L, R]
Given two numbers L, R which signifies the range [L, R], the task is to find the sum of all perfect numbers lying in the range [L, R].Examples: Input: L = 6, R = 10 Output: 6 Explanation: From 6 to 10, the only perfect number is 6.Input: L = 6, R = 28 Output: 34 Explanation: There are two perfect nu