Thank you. Corrected the mistake.
Although I don't follow it when you say a global function is also defined called primes.
I certainly haven't defined any function called primes, outside of the code shown here. Just to be safe I also renamed the function to something else and saw the same behaviour. Since my letfn had no body - only fnspecs, I guess I was referring to the primes function from outside the letfn scope. That it still works, I don't understand.
Could you please clarify, or point me to someplace, where I can understand this better. Why does the repl behave differently?
Thank you
Sid