#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  for (int o = 0; o < t; o++) {
    long long n, z = 0;
    cin >> n;
    map<long long, long long> mapa;
    vector<long long> a(n);
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      long long z = 0;
      while (a[i] % 2 == 0) {
        a[i] /= 2;
        z++;
      }
      mapa[a[i]] = max(mapa[a[i]], z);
    }
    long long ans = 0;
    for (auto u : mapa) {
      ans += u.second;
    }
    cout << ans << "\n";
  }
}
