So, the algorithm asks you to list out every number of the form $L = \\{7m + 2 ~\vert~ m \in \mathbb N\\}$.
Note that since we should just print each number once, let's check if by iterating over the different values of $m$, if we can get the same number.
\begin{align*} 7a + 2 = 7b + 2 \\\ 7 (a - b) = 0 \\\ a = b \end{align*}
That is, if $(7a + 2 = 7b + 2)$, then $(a = b)$. So, we can literally _enumerate_ all numbers and be guaranteed that we won't repeat values.
If you know how to read python, the algorithm would be:
def listL():
i = 0
while True:
print(7 * i + 2)
i += 1