Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 393 Bytes

Mystery.md

File metadata and controls

41 lines (35 loc) · 393 Bytes

Solve the mystery. Using sample input and output, figure out the logic to solve the question.

Input First number is T, the number of test cases. Next T numbers are integers, N.

Output Print T lines containing an answer corresponding to the T input numbers.

Constraints 1<=T<=10^4

1<=N<=10^8

SAMPLE INPUT

10
2
6
12
60
5
169
1
8
23
100

SAMPLE OUTPUT

2
4
6
12
2
3
1
4
2
9