Here's an explanation of these numbers. Say you want $e^{\pi \cdot n}$ to be within a positive error called $\epsilon$ of a natural number $L$, but you want $n$ to be natural as well. In other words...
$$L-\epsilon \lt e^{\pi \cdot n} \lt L+\epsilon$$
You can "solve" for n. Take the natural log and divide by $\pi$ to get...
$${1 \over {\pi}} \cdot \ln{(L-\epsilon)} \lt n \lt {1 \over {\pi}} \cdot \ln{(L+\epsilon)}$$
Now it should be clear that if $L$ ranges through $1$ to $\infty$ that the boundary for $n$ will range $0$ to $\infty$.
Since $L$ must be an natural number, there is little reason to think the values $n$ can take will be any more likely to not contain a natural number.
So now you'd use the above and pick an error tolerance. Values that allowed for both a natural $n$ and $L$ will be within $\epsilon$ of $L$. I'm guessing these are the so called Heegner numbers, you'd just allow for $n$ which are the square root of other numbers.