import scala.io.StdIn

object Main extends App {
  
  val a = StdIn.readLine().trim.split(' ').map(_.toInt)
  val t = a(2)
  val result = (a(0) until a(1)).foldLeft(0) { (acc, i) =>
    if(a(2) % i == 0) acc + 1 else acc
  }
  println(result)

}

