func main() var n: int :: cui@inputInt() var k: int :: cui@inputInt() if(k = 1) do cui@print("\{n - 1}\n") ret end if var i: int :: 2 var a: []int :: #[n + 1]int while loop(i * i <= n) if(math@prime(i)) var x: int :: i while(x <= n) do a[x] :+ 1 do x :+ i end while end if do i :+ 1 end while var ans: int :: 0 for j(2, n) if(a[j] >= k) do ans :+ 1 end if end for do cui@print("\{ans}\n") end func