Informal Question
How hard is it to generate a set of relatively prime numbers between two given bounds?
Decision Problem
Given $a$, $b$, and $k \in \mathbb{N}$. Does there exist a set $S \subseteq \mathbb{N}$ satisfying the following:
(a) for every $x \in S$, $a \leq x \leq b$
(b) for every $x, y \in S$, $x$ and $y$ are relatively prime
(c) $\vert S \vert = k$
Questions
(1) How hard is this decision problem? Is it as hard as factoring or any other well studied problems in NP? @YonatanN in the comments below explains why it is at least as hard as prime counting.
(2) In terms of $k$, how large does $b - a$ have to be to guarantee that such a set exists?
Any references would be greatly appreciated. Thank you!