#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int ar[n];
    for (int i = 0; i < n; i++) {
      cin >> ar[i];
    }
    sort(ar, ar + n);
    reverse(ar, ar + n);
    long long res = 0;
    map<int, int> mp;
    for (int i = 0; i < n; i++) {
      int tmp = ar[i];
      while (tmp % 2 == 0) {
        if (mp[tmp] != 0) {
          tmp /= 2;
          continue;
        }
        res++;
        mp[tmp] = 1;
        tmp /= 2;
      }
    }
    cout << res << endl;
  }
  return 0;
}
