#include<iostream>
using namespace std;
int main() {
    int a;
    int b;
    int c;
    int i;
    int x=0;
    cin >> a >> b >> c;
    if (a==0) {
        if (b==0) break;
    }
    if (a<=b) {
        for (i=a;i++;i<=b) {
            if (c % i == 0) {
                x++;
            }
        }
    } else {
        for (i=b;i++;i<=a) {
            if (c % i == 0) {
                x++;
            }
        }
    }cout << x << endl;
    return 0;
}
