Given a language $L$ that is recursive prove that $Prefix(L) = \{ x \ | \ xv \in L\}$ is recursively enumerable.
My first attempt at this was to try and formulate an algorithm in pseudocode.
Prefix-Recogniser(x)
for v in Σ*:
w = xv
if L-Decider(w) -> YES:
return YES
Since $L$ is recursive a decider for it say $M$ exists and if $x$ is a prefix of $L$ at some point Prefix-Recogniser will respond with YES.
A Turing Machine can be easily implemented for the pseudocode above but is my thought process correct?