#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, temp, c = 0;
    cin >> n;
    set<int, greater<int>> a;
    for (size_t i = 0; i < n; i++) {
      cin >> temp;
      a.insert(temp);
    }
    set<int, greater<int>>::iterator itr;
    for (itr = a.begin(); itr != a.end(); ++itr) {
      int it = *itr;
      if (it % 2 == 0) {
        a.insert(it / 2);
        ++c;
      }
    }
    cout << c << endl;
  }
}
