#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string str, str2;
  long long size, elm, tc, lim, n, m;
  cin >> tc;
  while (tc--) {
    cin >> size;
    set<long long> s;
    for (long long x = 0; x < size; x++) {
      cin >> elm;
      if (elm % 2 == 0) s.insert(elm);
    }
    long long ans = 0;
    while (s.size() != 0) {
      long long b = *s.rbegin();
      s.erase(b);
      if (b % 2 == 0) {
        ans++;
        s.insert(b / 2);
      }
    }
    cout << ans << endl;
  }
  return 0;
}
