Given a number n, the task is to find the even factor sum of a number.
INPUT : The first line consists of an integer T i.e. the number of test cases. First and last line of each test case consists of an integer n.
OUTPUT : Print the sum of even factors of the given integer n.
Input : 30 Output : 48 Even dividers sum 2 + 6 + 10 + 30 = 48 Input : 18 Output : 26 Even dividers sum 2 + 6 + 18 = 26
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.