package main

import (
	"fmt"
	"strconv"
)

func main() {
	for {
		var a, b, c int
		fmt.Scan(&a)
		fmt.Scan(&b)
		fmt.Scan(&c)

		count := 0
		for i := a; i <= b; i++ {
			if c % i == 0 {
				count++
			}
		}
		fmt.Println(strconv.Itoa(count))
	}
}