Python Forum
Twin Primes Recursion Limit
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Twin Primes Recursion Limit
#4
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.
Reply


Messages In This Thread
Twin Primes Recursion Limit - by djkraft - Sep-25-2017, 02:56 PM
RE: Twin Primes Recursion Limit - by nilamo - Sep-25-2017, 03:47 PM
RE: Twin Primes Recursion Limit - by ichabod801 - Sep-25-2017, 04:16 PM
RE: Twin Primes Recursion Limit - by Mekire - Sep-25-2017, 04:23 PM
RE: Twin Primes Recursion Limit - by djkraft - Sep-25-2017, 10:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  GCF function w recursion and helper function(how do i fix this Recursion Error) hhydration 3 2,662 Oct-05-2020, 07:47 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020