#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    unordered_map<long long, long long> mp;
    long long a[n + 12];
    int sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      mp[a[i]] = 0;
    }
    sort(a, a + n);
    for (int i = n - 1; i >= 0; i--) {
      if (!mp[a[i]] && a[i] % 2 == 0) {
        mp[a[i]] = 1;
        sum++;
        while (a[i] % 2 == 0) {
          mp[a[i]] = 1;
          a[i] /= 2;
          if (a[i] & 1) break;
          sum++;
        }
      }
    }
    cout << sum << "\n";
  }
  return 0;
}
