Problem:
How Many Divisors?

Write a program which reads three integers a, b and c, and prints the number of divisors of c between a and b.

Input

Three integers a, b and c are given in a line separated by a single space.

Output

Print the number of divisors in a line.

Constraints

1 ≤ a, b, c ≤ 10000

a ≤ b

Sample Input 1

5 14 80

Sample Output 1

3

Solution in JavaScript (judge verdict: Wrong Answer)

var input = ""
process.stdin.resume();
process.stdin.setEncoding('utf-8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});

process.stdin.on('end', function() {
  input = input.split("\n");
  i = 0
  while (input[i] != 0) {
    arr = input[i].split(" ");
    sum = 0;
    arr[0] = Number(arr[0]);
    arr[1] = Number(arr[1]);
    arr[2] = Number(arr[2]);

    for (j = arr[0]; j < arr[1]; j++) {
      if (arr[2] % j == 0) {
        sum++
      }
    }
    console.log(sum);
    i++;
  }
});