#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int *arr = new int[n];
  set<int, greater<int>> ms;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] % 2 == 0) {
      ms.insert(arr[i]);
    }
  }
  int c = 0;
  while (!ms.empty()) {
    auto i = ms.begin();
    int t = *i;
    ms.erase(t);
    t /= 2;
    c++;
    if (t % 2 == 0) {
      ms.insert(t);
    }
  }
  cout << c << "\n";
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
