Sep-25-2017, 04:23 PM
Recursion doesn't seem like a good way to approach this I think.
Write a sieve to return all primes in the desired range.
Then iterate through that and append ones to a new list that have a twin.
Write a sieve to return all primes in the desired range.
Then iterate through that and append ones to a new list that have a twin.