use std::io::*; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let n: usize = itr.next().unwrap().parse().unwrap(); let k: usize = itr.next().unwrap().parse().unwrap(); let mut ans = 0; for mut i in 2..n + 1 { let mut div = 2; let mut cnt = 0; while div * div <= i { if i % div == 0 { cnt += 1; while i % div == 0 { i /= div; } } div += 1; } if i != 1 { cnt += 1; } if cnt >= k { ans += 1; } } println!("{}", ans); }