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 table: Vec = vec![0; n + 1]; let mut prime = Vec::new(); let mut is_prime: Vec = vec![true; n + 1]; for i in 2..n + 1 { if is_prime[i] { prime.push(i); let mut j = i; while j <= n { table[j] += 1; is_prime[j] = false; j += i; } } } let mut ans = 0; for i in 0..n + 1 { if table[i] >= k { ans += 1; } } println!("{}", ans); }