Re: [racket-users] Functions that are sometimes tail recursive

2019-01-15 Thread Matthias Felleisen
> On Jan 15, 2019, at 10:13 AM, Will Jukes wrote: > > Hi everyone, > > I was helping a student the other day with a problem where they were to write > a recursive function that uses trial division to return a list of the prime > factors of an integer (no fancy optimizations, these are high s

[racket-users] Functions that are sometimes tail recursive

2019-01-15 Thread Will Jukes
Hi everyone, I was helping a student the other day with a problem where they were to write a recursive function that uses trial division to return a list of the prime factors of an integer (no fancy optimizations, these are high school kids who don't have a lot of number theory). It looked some