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.

**CONSTRAINTS :**

1<=T<=100

1<=n<=10^{5}

**EXAMPLES:
INPUT :**

2

30

18

**OUTPUT :**

48

26

**EXPLANATION :**

```
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.

geetyadav | 82 |

hari32147 | 76 |

AdityaRaj9 | 75 |

yashrana1 | 74 |

giavytrinh98 | 64 |

abducodes | 839 |

harshtyagi36 | 417 |

vamsikrishna55 | 323 |

sandipbhaumik | 321 |

Akhil varma | 314 |

blackshadows | 5331 |

Ibrahim Nash | 5219 |

akhayrutdinov | 5111 |

mb1973 | 4929 |

Quandray | 4567 |

Login to report an issue on this page.