#!/usr/bin/env perl use strict; use warnings; my ($n, $k) = split / /, <>; chomp $k; if ($k >= 21) { print "0\n"; exit; } my $ans = 0; my %h; for (my $i = 2; $i <= $n; $i++) { if (!exists$h{$i}) { for (my $j = $i; $j <= $n; $j+=$i) { $h{$j}++; } } if ($h{$i} >= $k) { $ans++; } } print "$ans\n";