import math class FactorCalc: def __init__(self, number): self.number = number self.factors = [] self.uniqueFactors = set() def calc_factors(self): number = self.number sqrt_number = math.ceil(math.sqrt(self.number)) for candidate_factor in range(2, sqrt_number + 1): if number < candidate_factor: break while (number % candidate_factor) == 0: self.factors.append(candidate_factor) self.uniqueFactors.add(candidate_factor) number = number / candidate_factor n, k = map(int, input().split()) count = 0 for i in range(2, n + 1): factor = FactorCalc(i) factor.calc_factors() if len(factor.uniqueFactors) >= k: count += 1 print(count)