Let $N$ be a big integer. Let $p$ be a prime number. Is there a formula to count how many number less than $N$ such that they are divisible by $p$ and not divisible by any prime less than $p$.
For example,
$p = 3$, one has
$$\left\lfloor\frac{N}{3}\right\rfloor - \left\lfloor\frac{N}{6}\right\rfloor$$
$p = 5$, one has
$$\left\lfloor\frac{N}{5}\right\rfloor - \left\lfloor\frac{N}{10}\right\rfloor - \left\lfloor\frac{N}{15}\right\rfloor + \left\lfloor\frac{N}{30}\right\rfloor$$
But, I don't know when $p$ arise big. For example, $N= 10^{15}$ and $p$ near to $\left\lfloor\sqrt{N}\right\rfloor$.
EDIT: I don't want know ALL number which is divisible by $p$, but only is divisible either by $p$ or by primes which is greater than $p$.