4.67 with this

Out of ideas .Code:#include <cstdio> int main() { unsigned int n, k; unsigned int count = 0; unsigned int t[8]; scanf("%u %u", &n, &k); while (n >= 8) { //first do it in blocks of 8 scanf("%u %u %u %u %u %u %u %u", &t[0], &t[1], &t[2], &t[3], &t[4], &t[5], &t[6], &t[7]); for (int i = 0; i < 8; ++i) { if (!(t[i] % k)) { ++count; } } n -= 8; } //do the rest one at a time for (int i = 0; i < n; ++i) { scanf("%u", &t[0]); if (!(t[0] % k)) { ++count; } } printf("%u", count); }