Sep-25-2017, 03:47 PM
This looks sufficiently different from the other thread (the other one was about displaying primes in vertically aligned tables), so I've split it into it's own thread.
With that said, I'll need to have some time to play around with it to see if I can help, but normally there's some conditions on whether or not to recurse. As it is now, the function will call itself every time, as long as
In the meantime, could you do us a favor and define what it is, exactly, that a "twin prime" is? If it's just a number, and that number+2 both being prime, then it would be a very, very small list, right?
With that said, I'll need to have some time to play around with it to see if I can help, but normally there's some conditions on whether or not to recurse. As it is now, the function will call itself every time, as long as
n
is greater than 3.In the meantime, could you do us a favor and define what it is, exactly, that a "twin prime" is? If it's just a number, and that number+2 both being prime, then it would be a very, very small list, right?