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.

narahc321 | 170 |

agness | 163 |

lonecoder | 153 |

2016uec1342 | 142 |

HuHu | 140 |

lonecoder | 1088 |

nikhil_sojan | 1082 |

KshatriyaYash | 1066 |

mazumderrohit8 | 928 |

SumitSingh27 | 832 |

blackshadows | 5327 |

Ibrahim Nash | 5215 |

akhayrutdinov | 5111 |

mb1973 | 4504 |

Quandray | 4444 |

Login to report an issue on this page.